In fairness, the tool didn’t work properly with module imports yesterday. But after this bit of dialog, it does handle them just fine today - even giving a suggestion to connect the to the window object so they become usable outside the individual script tag!
1 Like
In your screenshot you’re importing the script in a wrong way, it should not be included inside the style tag, it should be aside
<script type="module" src="https://cdn.jsdelivr.net/npm/@nangohq/frontend@0.33.2/dist/index.min.js"> </script>
something like that
But be aware it will works only on the published app. Custom code are not loaded in the editor yet, it will in a future release.
I’m not sure you will be able to do what you want with this plugin I’m just pointing the error in your screenshot.
Edit : I didn’t see you managed to import it, well done
We have a ticket under developpement to allow the custom code to be load in the editor as well (so you know its comming soon)
5 Likes