language-tools: template errors with recent versions for `ref` and `computed` variables

I don’t know if anyone can help me but I’m getting a lot of type errors which weren’t there a few days ago (specifically it’s type errors in the template for ref or computed props). I am using pnpm (v6.14.3) as the package manager.

  1. Initially when running pnpm ls vue-tsc in the base of the monorepo I got nothing. This surprised me and indeed npm ls vue-tsc give the expected results:

    2021-09-04_18-01-07 (2)

    This may be a red herring, but I found it odd. In any event, I install vue-tsc as a devDep in the root of the mono repo and am now getting this:

    image

    This should mean I’m on the latest version and I’d not expect to get any more errors.

  2. When starting vs-code (after step 1), I do unfortunately still get this “warning sign” from Volar:

    image

  3. Running pnpm up --latest vue-tsc as was suggested makes no changes I am already on the latest version but now I get tons of lint errors in the template section for ref and computed props. 😦

    image

This all worked a few days ago. I’m now trying to isolate which version stopped working for me.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 1
  • Comments: 18 (7 by maintainers)

Most upvoted comments

@johnsoncodehk yes, but the tips still there. by the way, thanks so much for Volar and your good job, so quick and cool.