benflap / tabler-icons-svelte

A library of SVG Svelte components for Tabler Icons.
MIT License
62 stars 7 forks source link

svelte kit complains at run time #7

Open jmsunseri opened 2 years ago

jmsunseri commented 2 years ago

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.
Gildedter commented 2 years ago

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

levg34 commented 2 years ago

Same issue than @Gildedter for me on svelte kit version 1.0.0-next.326.

benflap commented 2 years ago

Should be fixed in v1.8.0. Sorry it took my so long to publish the fix.

LukasDoesDev commented 2 years ago

image Mine tries to load everything :eyes:

LukasDoesDev commented 2 years ago

https://github.com/benflap/tabler-icons-svelte#import-components-from-file Works to fix the issues though