-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tsconfig.json generated by SvelteKit dev server incorrectly includes parents directory #8898
Comments
In that issue, it states that there is only one level too high, but for me it seems like there are multiple extra levels. |
It is not solved yet on master branch. |
It seems like the location of the lib and routes folder only results in the correctly generated tsconfig if they are inside the default src directory. When I move them away from each other or to a parent directory they are translated into nameless relative imports of parent directories. |
Sorry it seems to be solved in master. I had trouble installing and used the 1.50 by mistake. Just the unnecessary src import remains. |
Describe the bug
When a custom files.routes option is specified in the svelte.config.js file, the "include" section of the generated tsconfig file in the .svelte-kit folder is instantiated with globs referencing parent directories.
It get entries like this:
Instead of the expected "../src/" or "../routes/". I think this is slowing down my editor and I don't know how to fix this, because the file is autogenerated by default everytime I run the dev server.
Reproduction
https://github.com/wvhulle/sveltekit-parent-directory-bug
Logs
No response
System Info
The text was updated successfully, but these errors were encountered: