-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Update Typescript used to 3.7.2 #4811
Comments
Since you did not produce a reproduction of the problem, I assume the following:
I think that by default Vetur is using the typescript version that VSCode comes with, not the one you installed in your node_modules. You can do enable It seems this is missing from the vetur docs. If this indeed solves your issue, please open an issue in the vetur repository asking for the docs to include this. |
@vue/cli-plugin-typescript and ts-loader require typescript as peerDependencies So, the version of tsc used to compile is the version you installed in your project.
|
It seems that there is nothing to update in
Now it highlights and compiles ok. |
Has anyone got |
Updated in the 4.2 release. |
What problem does this feature solve?
when updating a project to use typescript 3.7.2 which includes optional chaining, the new syntax is not supported in
.vue
files since it's still using an older version of typescript.We should not get a syntax error for things like
foo?.bar
which is a new optional chaining syntax introduced in typescript 3.7.2What does the proposed API look like?
no linting errors on proper 3.7.4 typescript syntax
The text was updated successfully, but these errors were encountered: