Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to export Figma design #206

Closed
the3dfox opened this issue Jun 30, 2024 · 1 comment · Fixed by #207
Closed

Unable to export Figma design #206

the3dfox opened this issue Jun 30, 2024 · 1 comment · Fixed by #207

Comments

@the3dfox
Copy link

the3dfox commented Jun 30, 2024

When I try to export an existing design, the process is stuck at the last step "Generating Penpot file" and the browser console shows this error. The design is nothing special, just some layouts and filled elements. I started deleting elements until the export was sucessful. The elements which caused the problem was just a simple layout container:

image

this is the error log from the browser console

VM903:136 Uncaught Error: nth not supported on this type class hn{constructor(tn){tn&&(this._subscribe=tn)}subscribe(tn){return tn=tn instanceof nn?tn:new nn(tn),tn.add(this._trySubscribe(tn)),tn}_trySubscribe(tn){try{return this._subscribe(tn)}catch(rn){tn.error(rn)}}forEach(tn){return new Promise((rn,Jn)=>{const an=new nn({next:A=>{try{tn(A)}catch(V){Jn(V),an.unsubscribe()}},error:Jn,complete:rn});this.subscribe(an)})}_subscribe(tn){}[n](){return this}pipe(...tn){return tn.reduce(m,this)}[e](){let tn,rn=!1,Jn,an=!1;const A=[],V=[],Z=On=>{for(rn=!0,Jn=On;V.length;){const[,K]=V.shift();K(On)}},yn=()=>{for(an=!0;V.length;){const[On]=V.shift();On({value:void 0,done:!0})}};return{next:()=>(tn||(tn=this.subscribe({next:On=>{if(V.length){const[K]=V.shift();K({value:On,done:!1})}else A.push(On)},error:Z,complete:yn})),A.length?Promise.resolve({value:A.shift(),done:!1}):an?Promise.resolve({value:void 0,done:!0}):rn?Promise.reject(Jn):new Promise((On,K)=>{V.push([On,K])})),throw:On=>(tn?.unsubscribe(),Z(On),Promise.reject(On)),return:()=>(tn?.unsubscribe(),yn(),Promise.resolve({value:void 0,done:!0})),[Symbol.asyncIterator](){return this}}}}
    at B (<anonymous>:136:30094)
    at <anonymous>:266:12405
    at Function.r [as J] (<anonymous>:136:47707)
    at <anonymous>:138:1710
    at k.pb (<anonymous>:266:102318)
    at Vn (<anonymous>:136:34665)
    at bT (<anonymous>:138:1680)
    at Vwn (<anonymous>:266:12379)
    at <anonymous>:266:22776
    at <anonymous>:238:85241

link to file: https://www.figma.com/design/Qk3btoCmVEK7zBhXoGPZ8a/Untitled?node-id=0-1&t=O7qmAFVSAtL6zrSa-1

@Cenadros
Copy link
Collaborator

Cenadros commented Jul 1, 2024

Hi there @the3dfox. Apparently something changed in the penpot lib with the .zip file generation so we made a rollback of the lib while we check on that.

We updated the plugin and now it should work.

I'm closing this issue because I've tried your document with this new version and it works.

Thank you!

@Cenadros Cenadros closed this as completed Jul 1, 2024
@Cenadros Cenadros linked a pull request Jul 1, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants