-
-
Notifications
You must be signed in to change notification settings - Fork 597
Update TypeScript 3.7 #1510
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
Comments
As far as im aware (and I'm not a VS Code extensions expert), Vetur does not bring its own version of typescript - it uses the one that comes with VSCode. And since that's the version that all your normal .ts files will be run through by VSCode as well (unless you tell VSCode otherwise), this seems like a sensible default. |
@LinusBorg It comes with its own language server which includes typescript (https://github.com/vuejs/vetur/blob/master/server/package.json), but you can tell it to use the workspace version using |
We'll activate Dependabot for this repo so that we can release it with the latest TypeScript as soon as we can. |
@ktsn That would be nice, as of now using useWorkspaceDependencies with TS 3.7.2 results in intellisense failures. |
@Niekvdm So, to track things in one place: Can you clarify what is broken for you? |
Info
Problem
Can't use optional chaining, e.g.
a.b?.c
Messages:
Reproducible Case
Type this code:
Cause, Workaround and Fix
The cause of this problem is the version of Typescript included in Vetur.
There is a workaround by including typescript in your own project and then setting the
useWorkspaceDependencies
to true in your VSCode settings, as noted in bug report #1503This workaround is not suitable for general use because:
I would therefore ask that rather than just closing the issue because there is a workaround, that you put it on the todo list to implement the fix.
The fix is to upgrade the version of typescript included in Vetur to 3.7+
The text was updated successfully, but these errors were encountered: