Anyone know how to fix svelte-query

Cannot find module '/**/node_modules/@tanstack/svelte-query/dist/types' imported from /**/node_modules/@tanstack/svelte-query/dist/index.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
Cannot find module '/**/node_modules/@tanstack/svelte-query/dist/types' imported from /**/node_modules/@tanstack/svelte-query/dist/index.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
Solution:
I fixed it just needed to restart sveltekit
Jump to solution
2 Replies
GStudiosX2
GStudiosX2OP7mo ago
Its weird because types exist
node_modules/@tanstack/svelte-query/
├── dist
...
│   ├── types.d.ts
│   ├── types.js
node_modules/@tanstack/svelte-query/
├── dist
...
│   ├── types.d.ts
│   ├── types.js
Also i tried reinstalling twice and it didnt work
Solution
GStudiosX2
GStudiosX27mo ago
I fixed it just needed to restart sveltekit
Want results from more Discord servers?
Add your server