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.

It appears that the Vetur config doesn't work well with Vetur v0.35.0?

See original GitHub issue

Describe the bug

First: Why I’m filing this bug here. As a new-to-Vue user, I wasn’t sure what in the world was going on here. I was unfamiliar with Vetur and I had to spend some time debugging the issue. While it’s arguable that this is a problem with Vetur, it’s definitely a distraction from getting started with Vue-in-electron fun, and I think it would be a good idea for this project to shield new users from errors unrelated to the content of the project. I think I’d recommend commenting out that line in the vetur config. (It might even be nice for new users if there was some comment documenting what in the world the Vetur config is, and/or what they should know about it)

With a fresh clone of this repo, using the latest VS Code and the latest Vetur extension (at the time of the writing). I’m getting a TON of errors (aka “red squigglies”) until I disable the experimental template interpolation.

To Reproduce Steps to reproduce the behavior:

  1. clone the repo
  2. npm install
  3. Open in VS code with the latest Vetur installed (v0.35.0)

Expected behavior No errors in the IDE.

Screenshots image

Additional context

  • OS: Windows 10
  • VS Code:
    • Version: 1.62.3 (user setup)
    • Commit: ccbaa2d27e38e5afa3e5c21c1c7bef4657064247
    • Date: 2021-11-17T08:11:14.551Z
    • Electron: 13.5.2
    • Chrome: 91.0.4472.164
    • Node.js: 14.16.0
    • V8: 9.1.269.39-electron.0
    • OS: Windows_NT x64 10.0.19042
  • Vetur Extension version 0.35.0

Workaround

For now, simply commenting out 'vetur.experimental.templateInterpolationService': true and running the VS Code command Vetur: Restart VLS will resolve the issue. However, I don’t get types in the template.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
Peeterushcommented, Dec 2, 2021

Vetur doesn’t seem to play well with typescript 4.5, see vuejs/vetur#3244

0reactions
cawa-93commented, Dec 22, 2021

This is like a mistake in Vetur. For now, I’ll close it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

templateInterpolationService causing issues with well-used ...
Platform: Window 10; Vetur version: v0.35.0; VS Code version: ... It appears that the Vetur config doesn't work well with Vetur v0.35.0?
Read more >
FAQ | Vetur - GitHub Pages
If it says cannot find module <some-module> , go to Vetur's client code installation directory and run yarn or npm install . This...
Read more >
Vetur error 2300 Duplicate identifier '(Missing)' - Stack Overflow
For me Vetur v0.35.0 broke when I upgraded typescript > 4.4 ... By turning it to false in the vetur.config.js file:
Read more >
VS Code tips — The Vetur extension for working with Vue.js
Today's VS Code extension: VeturVetur adds all the editor tools for writing Vuejs in VS Code, including:• Syntax highlighting• Intellisense• ...
Read more >
How I Resolved Vue.js, VSCode, Vetur, Prettyhtml, and ...
So, I had to abandon Prettyhtml. I tried to go with Prettier directly using this VS Code setting: "vetur.format.defaultFormatter.html": ...
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