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

Type issues after enabling takeover mode #2534

Closed
Thooto opened this issue Mar 22, 2023 · 1 comment
Closed

Type issues after enabling takeover mode #2534

Thooto opened this issue Mar 22, 2023 · 1 comment

Comments

@Thooto
Copy link

Thooto commented Mar 22, 2023

Hi,

I am getting type inference issues in typescript files after having enabled takeover mode.

Capture d’écran 2023-03-22 à 10 43 37

Capture d’écran 2023-03-22 à 10 45 25

Prior to that, Typescript would correctly hint accArray and outputArray types as number[].

Any idea of what is causing this issue? Also, theses issues don't appear at build time for the project. Please let me know if I should provide you with my tsconfig.json or anything else that could help.

The issue happens with both 1.2.0 and 1.3.4 (prerelease) versions of Volar.
I'm using Typescript 4.6.3 in my project and Vue 2.6.
Seems to also happen when using latest version of Typescript provided by VSCode.
I correctly disabled VSCode builtin Typescript plugin.

Thanks!

@johnsoncodehk
Copy link
Member

Just for confirm the problem, can you try if config "vueCompilerOptions": { "strictTemplates": true } to tsconfig can avoid the problem or not?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants