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.

0.33.0 regression with vue 2 on template type checking

See original GitHub issue

Hello

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:closed
  • Created 2 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
johnsoncodehkcommented, Mar 13, 2022

Please update to 0.33.1 for fix, thanks for the report!

1reaction
J3m5commented, Mar 13, 2022

I’ve created a fresh project with vue cli and I encounter the same problem. I’ll provide a link to it quickly.

Read more comments on GitHub >

github_iconTop 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 >

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