flowbite
flowbite copied to clipboard
Not a valid ES module
You might already know this, but just for your information.
I get the following error when I start a SvelteKit server.
flowbite doesn't appear to be written in CJS, but also doesn't appear to be a valid ES module (i.e. it doesn't have "type": "module" or an .mjs extension for the entry point). Please contact the package author to fix.
with vue as well
Same here in a svelte-kit project
I hope this will be solved. Not too fond of warnings. But I like flowbite, thanks for creating.
Hey everyone,
I'll tackle this for the 1.5 version. We'll release some new components including drawer, stepper, skeleton and popover.
The issue persists with v1.5 of flowbite.
Hello @shinokada @ymc9 @eric-naguras @samuelstroschein,
I've updated Flowbite to v1.5.5 and the default entry point is now the src/flowbite.js file which is ES compatible.
Can you please upgrade and check if still persists?
Thanks!
I have flowbite v1.5.5 and it still gives the same warning.
Can you add "type": "module", to package.json?
Hello @shinokada,
I have launched v1.6.0 and rebuilt the distribution packages and I have built CJS, ESM, and UMD and also the package.json file.
Can you please check it out now?
Cheers, Zoltan
@zoltanszogyenyi Yes, it works without warnings.
Wohoo @shinokada 🥳