Closed codepilotsf closed 8 months ago
There is something else at play here. I just tested this and everything is working as expected with no errors. Please create a basic reproduction of this. Until then, I am not sure which tail to chase because I am not seeing one on my end.
After addressing your issue I see now why you are getting this error. Both issues will be resolved in the next update.
Current Behavior
In a fresh SvelteKit 2.0 application, if I install stwui, then try to import any component like this:
import { Alert } from 'stwui';
I hit this error:
The workaround is is to use this syntax:
import Alert from 'stwui/alert';
Expected Behavior
No error.
Steps To Reproduce
npm create svelte@latest test
cd test
npm install; npm install stwui --legacy-peer-deps
routes/+page.js
adding the script block with import to top of file:Link to Reproduction / Stackblitz
No response
More Information
No response