question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

VSCode reports errors, but the app runs fine

See original GitHub issue

Describe 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

  1. Fork https://github.com/nailuj29gaming/chip8-vis-ide
  2. Open it in visual studio code

Expected behavior No errors reported by VS Code

Screenshots image

System (please complete the following information):

  • OS: Windows
  • IDE: VSCode
  • Plugin/Package: Svelte for VSCode

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
nailuj29commented, Dec 7, 2020

Thank you! The intellisense message had me thinking the error was in the Svelte components.

0reactions
nailuj29commented, Dec 8, 2020

Yes, I fixed the error in the svelte.config.js. That clears up why the error was in the svelte file.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found