-
-
Notifications
You must be signed in to change notification settings - Fork 428
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
Unexpected type errors with vue-tsc 2.0.10 #4218
Comments
Duplicate of #4209 |
@so1ve How about the issue within node_modules? |
@kingychiu Which file should |
hi @johnsoncodehk, that mjs file is used by the This error wont be raised in an older version of |
Hey there, as there have been many fixes in the last 2.x versions: Please let us know if you're still encountering this issue. Otherwise kindly close this one, thanks! |
The first reported error is expected. Expression in The second reported error, I think, is the same as #4249. Let's track it there. |
Run
in the following example:
https://stackblitz.com/edit/nuxt-starter-whhd9d?file=package.json
with vue-tsc 2.0.10:
With vue-tsc 2.0.7: No errors
The first error is from this block of code:
In vue-tsc 2.0.10, it raises an error about "myState.arrayState" is possibly undefined, but it is checked by the
v-if
already.The second error comes from a node_module, which should be ignored.
Full error log from vue-tsc 2.0.10:
The text was updated successfully, but these errors were encountered: