Open Joonel opened 1 month ago
You need to add a jsconfig.json referencing that generated tsconfig, else intellisense doesn't know what these references are. We should adjust the npm create svelte
CLI to add a minimum jsconfig.json if you chose no for both JsDoc and TS.
Describe the bug
Not being able to go to an implementation of a function when using an alias like default
$lib
or a custom one; Suggestions for typing imports don't work.Reproduction
Repo with reproduction - https://github.com/Joonel/alias-bug
Create a new empty project, no TS, no JSDoc. Add any
@custom-alias
for a folder insvelte.config.js
, import a function on+page.svelte
from theindex.js
in that folder, then try to go to the implementation of that function.svelte.config.js
:paths in
./svelte-kit/tsconfig.json
are as expected:Logs
No response
System Info
Severity
serious, but I can work around it
Additional Information
No response