New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when trying to build with adapter-static #86
Comments
This section in the SvelteKit FAQ might be relevant: https://kit.svelte.dev/faq#packages
|
This might be a similar or the same issue: sveltejs/vite-plugin-svelte#293 Not sure yet if that means there is nothing for flowbite to fix and it's on vite-plugin-svelte to fix that. |
So based on @dominikg's input in sveltejs/vite-plugin-svelte#293, this is an issue on
|
Thank you for your report. Now you can use it as followings:
I updated Flowbite-Svelte. Please update it:
Thanks again for your issue. |
@shinokada It builds now! Thanks for your fast fix. Very nice 👍 |
Describe the bug
When I try to use the adapter-static to build a svelte page, I get the following error from inside the flowbite-svelte package:
To Reproduce
Steps to reproduce the behavior:
npm install
npm build
, this should work just fine.svelte.config.js
and add the importimport static_adapter from '@sveltejs/adapter-static';
and set the adapteradapter: static_adapter(),
.npm build
, this now results in the following error.Code samples
See the reproduction above.
Expected behavior
The build should work just fine.
Desktop (please complete the following information):
Additional context
I remember having similar import issues with a previous project and it had to do with different import styles and ES modules vs.
cjs
. Maybe that's also the issue here.The text was updated successfully, but these errors were encountered: