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
compile errors when typechecking svelte.config.js
with moduleResolution
set to nodenext
#591
Comments
minimized comment, off topic
this also causes two even more severe issues: compile errors when trying to import another svelte component<script lang='ts'>
import Foo from './Foo.svelte' // svelte file that exists
</script>
<Foo/>
also why is an undefined variable only a warning instead of an error? runtime crashattempting to run my app with
|
Could you provide a reproduction for this? This sounds a bit unrelated - moduleResolution shouldn't have impact on how things are resolved at runtime, unless Vite is doing something funky there. |
yeah i can't reproduce that anymore updating to typescript 5, must've been the same issue as #612 however the issue in the OP still occurs |
Describe the bug
when typechecking
svelte.config.js
withmoduleResolution
set tonodenext
, the following compile errors occur:Logs
Please include browser console and server logs around the time this bug occurred.
To Reproduce
dev
npm script to finishExpected behavior
A clear and concise description of what you expected to happen.
Information about your project:
svelte-preprocess
version: 5.0.3Additional context
other related issues:
svelte.config.js
withmoduleResolution
set tonodenext
vite-plugin-svelte#619svelte.config.js
withmoduleResolution
set tonodenext
kit#9663The text was updated successfully, but these errors were encountered: