# Cannot Use Import Statement

**URL:** <https://community.weweb.io/t/cannot-use-import-statement/4701>\
**Category:** Ask us anything\
**Created:** [October 2, 2023, 10:47pm UTC](https://community.weweb.io/t/cannot-use-import-statement/4701 "2023-10-02T22:47:56Z")\
**Posts on this page:** 3\
**Page:** 2

<div class="post-metadata">

**Author:** ![raydeck](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/raydeck/32/384_2.png) [@raydeck](https://community.weweb.io/u/raydeck)\
**Post date:** [October 4, 2023, 12:37am UTC](https://community.weweb.io/t/cannot-use-import-statement/4701/21 "2023-10-04T00:37:48Z")

</div>

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!

---

<div class="post-metadata">

**Author:** ![Alexis](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/alexis/32/13248_2.png) [@Alexis](https://community.weweb.io/u/Alexis)\
**Post date:** [October 4, 2023, 8:53am UTC](https://community.weweb.io/t/cannot-use-import-statement/4701/22 "2023-10-04T08:53:02Z")

</div>

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

```auto
<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 🙂

---

<div class="post-metadata">

**Author:** ![aurelie](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/aurelie/32/13249_2.png) [@aurelie](https://community.weweb.io/u/aurelie)\
**Post date:** [October 4, 2023, 9:02am UTC](https://community.weweb.io/t/cannot-use-import-statement/4701/23 "2023-10-04T09:02:18Z")

</div>

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)

[Previous page](https://community.weweb.io/t/cannot-use-import-statement/4701.md?page=1)
