0.33.0 regression with vue 2 on template type checking
See original GitHub issueHello
After updating to 0.33.0, the Cannot find name '...' .ts(2304)
errors are displayed on all variables returned in the setup function.
I’m using defineComponent
from @vue/runtime-dom
on exported JavaScript components.
The errors are not there with the previous version 0.32.1.
Tested with “Take over mode” enabled and disabled
“@vue/runtime-dom”: “3.2.31”, “vue”: “2.6.14”, “@vue/composition-api”: “1.4.9”,
Vscode 1.65.2
Thank you for your work
Issue Analytics
- State:
- Created 2 years ago
- Comments:12 (6 by maintainers)
Top Results From Across the Web
Update CHANGELOG.md - johnsoncodehk/volar - GitHub
If your project includes Storybook or @types/react , you need to config tsconfig types option to avoid @types/react affect to template type-checking. See...
Read more >volar/vue-typescript - NPM Package Versions - Socket.dev
Start using Socket to analyze @volar/vue-typescript and its 3 ... fix: fixed template Type 'void' has no call signatures errors (#2225); fix(vue-tsc): shim ......
Read more >Type checking for native boolean attributes in Vue templates ...
Here is an example of code that will cause this in a vue file: <template> <button :disabled="disabled" > Example </button> </template> <script lang="ts"> ......
Read more >Using Vue with TypeScript - Vue.js
To use TypeScript in SFCs, add the lang="ts" attribute to <script> tags. When lang="ts" is present, all template expressions also enjoy stricter type...
Read more >Jest don't mount composition-api component on Vue 2.7 + TS ...
1", "@babel/preset-env": "^7.19.1", "@faker-js/faker": "^7.6.0", "@vue/server-test-utils": ...
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 Free
Top 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
Please update to 0.33.1 for fix, thanks for the report!
I’ve created a fresh project with vue cli and I encounter the same problem. I’ll provide a link to it quickly.