import e.g. import { IconHeart } from '@tabler/icons-svelte' into a SvelteKit page
use it like <IconHeart />
encounter an error stack like this:
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)
Reproduction:
import { IconHeart } from '@tabler/icons-svelte'
into a SvelteKit page<IconHeart />