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

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

Open
marioaltvater opened this issue Nov 9, 2021 · 3 comments
Assignees

Comments

@marioaltvater
Copy link

marioaltvater commented Nov 9, 2021

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:

  • Have a page with some component instances
  • Trigger PageClone and make sure "Detach instances" is enabled

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
Copy link
Owner

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

@stevahnes stevahnes self-assigned this Nov 11, 2021
@marioaltvater
Copy link
Author

Hey Stevanus, awesome. Thank you.

@stevahnes
Copy link
Owner

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 [email protected] :) @marioaltvater

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

No branches or pull requests

2 participants