tabler-icons-svelte
tabler-icons-svelte copied to clipboard
svelte kit complains at run time
All I'm doing is
import { DeviceFloppy, CircleX } from 'tabler-icons-svelte';
not even using the icons in the template it complains then crashes the app when i visit a page where i import
in browser
500
Failed to fetch dynamically imported module: http://localhost:3000/src/routes/project/[projectId]/__layout.svelte
TypeError: Failed to fetch dynamically imported module: http://localhost:3000/src/routes/project/[projectId]/__layout.svelte
in console
Debugger attached.
yarn run v1.22.15
warning package.json: No license field
$ svelte-kit dev
Debugger attached.
SvelteKit v1.0.0-next.201
local: http://localhost:3000
network: not exposed
Use --host to expose server to other devices on this network
tabler-icons-svelte is incorrectly packaged. Please contact the package author to fix.
Mine doesn't even render and spits out
tabler-icons-svelte 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.
on the dev console
Same issue than @Gildedter for me on svelte kit version 1.0.0-next.326.
Should be fixed in v1.8.0. Sorry it took my so long to publish the fix.
Mine tries to load everything :eyes:
https://github.com/benflap/tabler-icons-svelte#import-components-from-file Works to fix the issues though