I followed the standard tutorial in sveltkit to create a Typescript Project for a basic template.
I wanted to use Material Web Component Button.
I npm install @material/mwc-button.
Then I simply add the following to routes/index.svelte
<script>
import "@material/mwc-button";
</script>
To which I get SyntaxError: Cannot use import statement outside a module.
This is driving me crazy as it's step one of my requirement and this is week 3 of being stuck. I don't know even where to start. Is this a vite problem, sveltekit problem, mwc problem? Any advice would be amazing.