Closed ehahn9 closed 1 year ago
For unsaved files, because VS Code doesn't know where they'll be saved to disk, it can sometimes get confused and provide false syntax and type warnings. You can safely ignore these. They are not related to Quokka and you will get the same issue if you do the following without Quokka:
File: New Untitled File
As far as we are aware there is no way of disabling VS Code default JS/TS checking on unsaved files. Looks like it was requested as a feature but did not go ahead: https://github.com/microsoft/vscode/issues/113822.
Issue description or question
Using Pro, I can indeed import local modules in Quokka typescript files but the import's always have red squigglies:
Is this issue related to Quokka not outputting the expected results of your code?: Yes/No
Sample code
Sample repository link
If the issue can not be reproduced just using the quokka file above (for example because it requires/imports some files from your project), please create a small repository where the issue can be reproduced.
Here's my tsconfig (sveltekit project, but I have the same problem with react):
Quokka.js Console Output
Looks normal:
Code editor version
Visual Studio Code v1.77.1 Webstorm v? Atom v1.?
OS name and version
Windows OSX 13.3 Linux