Subscribe on changes!

Typescript error when using the .attr modifier of v-bind

avatar
Feb 9th 2022

Version

3.2.30

Reproduction link

github.com

Steps to reproduce

  1. Clone the repo
  2. npm i
  3. try to build it with npm run build
  4. remove the .attr modifier from the HelloWorld component and it will build successfully

What is expected?

I expect the build to finish successfully

What is actually happening?

Build throws an error saying "error TS1003: Identifier expected." at the start of the .attr modifier

avatar
Feb 9th 2022

That would have to be solved in vue-tsc (Volar). You can open an issue here: https://github.com/johnsoncodehk/volar/issues