tabler / tabler-icons

A set of over 5700 free MIT-licensed high-quality SVG icons for you to use in your web projects.
https://tabler.io/icons
MIT License
18.31k stars 917 forks source link

Cannot find `.../@tabler/icons-svelte/dist/defaultAttributes` error with 3.0.0-alpha.0 #988

Closed mcmxcdev closed 3 months ago

mcmxcdev commented 9 months ago

Reproduction:

6:36:56 AM [vite] page reload src/routes/(home)/+page.svelte
6:36:57 AM [vite] Error when evaluating SSR module /src/routes/(home)/+page.svelte: failed to import "@tabler/icons-svelte"
|- Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/<user>/node_modules/.pnpm/@tabler+icons-svelte@3.0.0-alpha.0_svelte@4.2.8/node_modules/@tabler/icons-svelte/dist/defaultAttributes' imported from /home/<user>/node_modules/.pnpm/@tabler+icons-svelte@3.0.0-alpha.0_svelte@4.2.8/node_modules/@tabler/icons-svelte/dist/tabler-icons-svelte.js
    at finalizeResolution (node:internal/modules/esm/resolve:264:11)
    at moduleResolve (node:internal/modules/esm/resolve:917:10)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36)

Error [ERR_MODULE_NOT_FOUND]: Cannot find module '/home/<user>/node_modules/.pnpm/@tabler+icons-svelte@3.0.0-alpha.0_svelte@4.2.8/node_modules/@tabler/icons-svelte/dist/defaultAttributes' imported from /home/<user>/node_modules/.pnpm/@tabler+icons-svelte@3.0.0-alpha.0_svelte@4.2.8/node_modules/@tabler/icons-svelte/dist/tabler-icons-svelte.js
    at finalizeResolution (node:internal/modules/esm/resolve:264:11)
    at moduleResolve (node:internal/modules/esm/resolve:917:10)
    at defaultResolve (node:internal/modules/esm/resolve:1130:11)
    at ModuleLoader.defaultResolve (node:internal/modules/esm/loader:396:12)
    at ModuleLoader.resolve (node:internal/modules/esm/loader:365:25)
    at ModuleLoader.getModuleJob (node:internal/modules/esm/loader:240:38)
    at ModuleWrap.<anonymous> (node:internal/modules/esm/module_job:85:39)
    at link (node:internal/modules/esm/module_job:84:36)