stevahnes / figma-plugins

📌 Single repository containing all my Figma plugins
https://www.figma.com/@stevahnes
MIT License
13 stars 3 forks source link

PageClone: Cloning stalls with "Detach instances" enabled + error in log #19

Open marioaltvater opened 3 years ago

marioaltvater commented 3 years ago

It does not seem to be possible to clone a page and simultaneously detach all instances. An error is shown in the log. Cloning works without any issues when the aforementioned setting is turned off.

Reproduction Steps:

Plugin window spins forever, error following is shown in the log:

    at s (PLUGIN_13_SOURCE)
    at <anonymous> (PLUGIN_13_SOURCE)
    at forEach (native)
    at <anonymous> (PLUGIN_13_SOURCE)
    at forEach (native)
    at <anonymous> (PLUGIN_13_SOURCE)

(anonymous) @ figma_app.bce3587c4bfd9cbd0b9b7144e399a3ab.min.js.br:39
callFunction @ figma_app.bce3587c4bfd9cbd0b9b7144e399a3ab.min.js.br:838
iframeMessageHandler @ figma_app.bce3587c4bfd9cbd0b9b7144e399a3ab.min.js.br:1509
windowMessageEventListener @ figma_app.bce3587c4bfd9cbd0b9b7144e399a3ab.min.js.br:1468
p @ figma_app.bce3587c4bfd9cbd0b9b7144e399a3ab.min.js.br:71
postMessage (async)
messageHandler @ plugin-sandbox:16
postMessage (async)
(anonymous) @ VM945:1
setTimeout (async)
document.getElementById.onclick @ VM945:1

Thanks for looking into it 👍

stevahnes commented 3 years ago

Hello @marioaltvater I'll try to look into it this weekend okay!

marioaltvater commented 3 years ago

Hey Stevanus, awesome. Thank you.

stevahnes commented 3 years ago

Usually this is because of an unhandled frame or figma file structure. Would you mind sharing with me a sample of where this occurs for me to reproduce? Can share to stevanus.satria@gmail.com :) @marioaltvater