VSCode reports errors, but the app runs fine
See original GitHub issueDescribe the bug VS Code reports the following error:
Error in svelte.config.js
SyntaxError: Cannot use import statement outside a module svelte
in every svelte file, but the project runs fine
To Reproduce
- Fork https://github.com/nailuj29gaming/chip8-vis-ide
- Open it in visual studio code
Expected behavior No errors reported by VS Code
Screenshots
System (please complete the following information):
- OS: Windows
- IDE: VSCode
- Plugin/Package: Svelte for VSCode
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
VSCode .Net Core MVC reports problems but Project ...
I can build and run the app using dotnet build cmd. No errors are reported when built. But today I opened VSCode and...
Read more >IntelliSense Reports Too Many Errors but Files Compile
hpp anywhere in my project, IntelliSense stops working and I get a single red squiggle at the top of each file whose tooltip...
Read more >Fix program errors and improve code - Visual Studio ...
If rule violations are found, they are reported both in the Error List and ... The Visual Studio IDE changes while your app...
Read more >Fixing Visual Studio Intellisense Errors - Rick Strahl's Web Log
A new feature in Visual Studio now shows separate error listings for ... just fine when running through the compiler, but Visual Studio ......
Read more >Visual Studio Code Tip: Show TypeScript Errors in Entire ...
First, as mentioned in the GitHub comment liked above, we need to set up a task in VS Code that we will run...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Thank you! The intellisense message had me thinking the error was in the Svelte components.
Yes, I fixed the error in the
svelte.config.js
. That clears up why the error was in the svelte file.