I've been working with Svelte Kit (using TypeScript) and I'm having trouble getting the new link "$base" to work for my shortlinks. I've added the shortlink information below:
./jsconfig.json
{
"compilerOptions": {
"module": "commonjs",
"baseUrl": ".",
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"$base": ["src/baseApp"],
"$base/*":["src/baseApp/*"]
}
},
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
}
There is also no intellisense available https://i.sstatic.net/Yaje8.png
For more details about jsconfig.json, click here
I came across a similar issue with NEXT here
Even after trying this, it didn't seem to work
In addition to updating jsconfig.json file, I also tried adding the paths to my tsconfig.json file as follows:
{
"extends": "./.svelte-kit/tsconfig.json",
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"esModuleInterop": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"sourceMap": true,
"strict": true
},
"paths": {
"$lib": ["src/lib"],
"$lib/*": ["src/lib/*"],
"Base": ["src/baseApp"],
"Base/*":["src/baseApp/*"]
}
}