Skip to main content
Question

figma.setCurrentPageAsync throws Uncaught (in promise) RuntimeError: table index is out of bounds

  • October 16, 2024
  • 0 replies
  • 242 views

edDes

Every time I try to switch page in the file, it works, but the console shows:

jsvm-cpp.wasm.br:0x22c77 Uncaught (in promise) RuntimeError: table index is out of bounds
    at jsvm-cpp.wasm.br:0x22c77
    at jsvm-cpp.wasm.br:0x2313f
    at jsvm-cpp.wasm.br:0x3a412
    at jsvm-cpp.wasm.br:0x26724
    at jsvm-cpp.wasm.br:0x33106
    at jsvm-cpp.wasm.br:0x2c352
    at jsvm-cpp.wasm.br:0x2bab3
    at jsvm-cpp.wasm.br:0x11f6
    at jsvm-cpp.wasm.br:0x6188
    at 7107-0a61d720624d64e…min.js.br:820:12443

the code i use:

figma
                .setCurrentPageAsync(myPageNode)
                .then(() => {
                    console.log("Set the page OK");
                })
                .catch((error) => {
                    console.error("Error setting the page:", error);
                    figma.notify(`Error setting the page: ${error}`, { timeout: 5000 });
                });
This topic has been closed for replies.