VisualStudio Code shows errors in new project
See original GitHub issueVersion
3.0.0-beta.6
Reproduction link
https://github.com/xcambar/vue-cli-lint-error-typescript
Steps to reproduce
vue create name-of-your-project
- Select only the “TypeScript” option
- open
HelloWorld.vue
in VSCode
What is expected?
The linter service and VSCode should provide the same amount of feedback to the user.
What is actually happening?
The linter service does not throw any error, but VSCode does.
I’m new to vue-cli, and despite my Google-fu, I may have missed something.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Fix program errors and improve code - Visual Studio (Windows)
Click on any line of code, right-click to open the context menu, and select Quick Actions and refactorings. If refactoring or improvement ...
Read more >Errors reported when none exist (Visual Basic projects)
My asp.net core project (c#) does not show ANY errors in code after moving to 15.5. I have to rely on the cmd...
Read more >How to make Visual Studio Code check entire project for errors?
Then pressing Shift + Ctrl + B (or Shift + Command + B in macOS) will check the entire project for problems and...
Read more >How to Fix Enable Error Squiggles VSCode - YouTube
In This Video We Will See How to Fix Enable Error Squiggles VSCode - Errors Not Showing in Microsoft Visual Studio Code or...
Read more >VS Code: Code shows errors in IDE, yet builds are successful
I have issues, reminiscent of IDE errors from Visual Studio, were the IDE is putting out false errors, which lead to no or...
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
I confirm the fix described in https://github.com/vuejs/vetur/issues/682#issuecomment-364267867 works, thanks @kumorig !
It will do before Vetur 0.11.8 is published 👍
I can confirm this issue, and I’m pretty sure it has to do with the typescript version. The vetur-extension in vscode installs with
devDependencies:{"typescript": "^2.6.2"}
(looking at%USERPROFILE%\.vscode\extensions\octref.vetur-0.11.7\package.json
) but https://github.com/vuejs/vetur/blob/master/package.json has"typescript": "^2.8.1",
but vetur@0.11.7 is the same version so whats up with that?Anyway, definite assignment assertions (the exclamation marks after variables), where your code breaks the linter, were introduced in typescript v2.7