tabler-icons-svelte icon indicating copy to clipboard operation
tabler-icons-svelte copied to clipboard

svelte kit complains at run time

Open jmsunseri opened this issue 3 years ago • 5 comments

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.

jmsunseri avatar Dec 15 '21 11:12 jmsunseri

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

Gildedter avatar Apr 03 '22 01:04 Gildedter

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

levg34 avatar May 07 '22 12:05 levg34

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

benflap avatar May 07 '22 18:05 benflap

image Mine tries to load everything :eyes:

LukasDoesDev avatar Jun 23 '22 22:06 LukasDoesDev

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

LukasDoesDev avatar Jun 23 '22 22:06 LukasDoesDev