You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This package uses JSDoc for types and documentation, so an extra step is needed to use it in TypeScript projects [for now](https://github.com/babichjacob/svelte-localstorage/issues/22). Configure your `tsconfig.json` so that it has `compilerOptions.maxNodeModuleJsDepth` set to at least 1:
12
+
```json
13
+
// tsconfig.json
14
+
{
15
+
// When using SvelteKit: "extends": "./.svelte-kit/tsconfig.json",
16
+
"compilerOptions": {
17
+
// Other options...
18
+
"maxNodeModuleJsDepth": 1
19
+
}
20
+
}
21
+
```
22
+
23
+
10
24
## 🧰 SvelteKit
11
25
Because this package relies on SvelteKit's generated code, you have to prevent Vite from bundling it in advance ([which results in a build error](https://github.com/babichjacob/svelte-localstorage/issues/18)):
0 commit comments