Hello, I created a plugin last year which largely deals with selecting a component variant in the plugin UI and then the plugin will automatically import the corresponding variant of a published component. However, when I went to update the plugin, it no longer works. The console is giving me the error message: Uncaught (in promise) Could not find a published component set with the key “(key)”.
I tried troubleshooting this by going into the console of a component within Figma. The component is published. I selected a variant and typed in: “Figma.currentPage.selection[0].key”. I then copied this key and typed in "Figma.importComponentByKeyAsync(‘key’) with replacing “key” with the actual key. Again I get the error: “Uncaught (in promise) Could not find a published component set with the key “(key)”.”
I am dumbfounded why this is happening. I have tried multiple component variants. Anyone have any idea how to fix this?