flowbite icon indicating copy to clipboard operation
flowbite copied to clipboard

Not a valid ES module

Open shinokada opened this issue 3 years ago • 4 comments

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.

image

shinokada avatar Apr 08 '22 21:04 shinokada

with vue as well

estudiooka avatar Apr 23 '22 08:04 estudiooka

Same here in a svelte-kit project

ymc9 avatar Jun 28 '22 11:06 ymc9

I hope this will be solved. Not too fond of warnings. But I like flowbite, thanks for creating.

eric-naguras avatar Jul 03 '22 06:07 eric-naguras

Hey everyone,

I'll tackle this for the 1.5 version. We'll release some new components including drawer, stepper, skeleton and popover.

zoltanszogyenyi avatar Jul 03 '22 10:07 zoltanszogyenyi

The issue persists with v1.5 of flowbite.

samuelstroschein avatar Oct 24 '22 17:10 samuelstroschein

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!

zoltanszogyenyi avatar Dec 08 '22 17:12 zoltanszogyenyi

I have flowbite v1.5.5 and it still gives the same warning.

Can you add "type": "module", to package.json?

shinokada avatar Dec 08 '22 23:12 shinokada

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 avatar Jan 03 '23 15:01 zoltanszogyenyi

@zoltanszogyenyi Yes, it works without warnings.

image

shinokada avatar Jan 03 '23 21:01 shinokada

Wohoo @shinokada 🥳

zoltanszogyenyi avatar Jan 03 '23 21:01 zoltanszogyenyi