Typeform/embed in NPM plugin empty on reload

Hello!

I’ve tried using @typeform/embed package in the NPM plugin.
I’ve made it work and I could use the functions inside.

But if I reload the Editor, the package is empty and I need to reinstall it to make them appear again.
Is it a bug? :cry:

CleanShot 2024-01-16 at 16.43.35
CleanShot 2024-01-16 at 16.43.09

Are you on version 4.4.1? Have you checked if the library is loaded? Try to see if wwLib.getFrontWindow().embed returns an object with the library’s methods. If it is there it is possible it’s a bug or something in the library conflicting with the editor.

Thanks for the pointers @dorilama !

I do get the methods in wwLib.getFrontWindow().embed and managed to make it work!
I thought it wasn’t working because the form was appearing out of screen at the bottom

Great! Happy you worked it out. :slight_smile: