Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
benlesh opened this issue Nov 30, 2021 · 6 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@benlesh
Copy link

benlesh commented Nov 30, 2021

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.

@benlesh
Copy link
Author

benlesh commented Nov 30, 2021

I've filed a related bug in Vetur (as Github linked above), here: vuejs/vetur#3257

@cawa-93
Copy link
Owner

cawa-93 commented Nov 30, 2021

cc @xiaohulu

@Peeterush
Copy link

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

@Uninen
Copy link

Uninen commented Dec 11, 2021

FWIW Vetur is no longer the officially supported IDE extension for Vue 3. Volar is officially recommended and works great w/ TypeScript as well.

(I'm not affiliated in any way. I maintain vite-ts-tailwind-starter template and have been using both of these for a long time. Switched fully to Volar about a year ago, it's much better w/ Vue 3.)

@xiaohulu
Copy link
Contributor

Thanks @Uninen,I will switch to Volar too.

@cawa-93
Copy link
Owner

cawa-93 commented Dec 22, 2021

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

@cawa-93 cawa-93 closed this as completed Dec 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants