SvelteKit Support?
nash-an opened this issue · 7 comments
Not sure what's happening, but latest version (0.4.3) on SvelteKit has no exported values.
Within +layout.svelte
I am unable to import anything from the library.
import { Icon } from 'flowbite-svelte-icons';
import { AddressCardSolid } from 'flowbite-svelte-icons';
Neither of these imports work. The values just don't exist.
Please read the docs.
You don't need to import Icon
any more.
<script>
import { AddressCardSolid } from 'flowbite-svelte-icons';
</script>
<AddressCardSolid />
The compiled size is much smaller now.
Sorry, it was just meant to be an example as nothing seems to work for me.
Error: <ChartPieSolid> is not a valid SSR component. You may need to review your build config to ensure that dependencies are compiled, rather than imported as pre-compiled modules. Otherwise you may need to fix a <ChartPieSolid>.
I'm able to import things now... but I'm getting this error.
I have it installed as a dev dependency, so that's not the issue.
Which version are you using?
0.4.3
Running npm run check
gives me this error
Error: Module '"flowbite-svelte-icons"' has no exported member 'ChartPieSolid'. (ts)
Can you share your GitHub repo or stackbiltz?
I'll try to reproduce the issue in a smaller repo, I cannot share the full one I'm working with.
Please make sure to follow the installation guide at https://flowbite-svelte-icons.vercel.app/