-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
how can i use optionalChaining? #1438
Comments
For JavaScript: the Babel plugin For TypeScript: Soon! November 5th! The issue Also, this can probably be closed as an issue not particularly specific to Vetur |
I've used the Babel plugin, but the vscode shows the Expression expected.Vetur(1109). How to configure vetur ? |
TS 3.7, target release of 11/5/19 Vetur is based on vue-language-server. the vue-language-server is current loading bundled typescript@3.6.3. so you have to wait for the vue-language-server to upgrade this version to 3.7 |
As answered by others, you'll need to wait TS 3.7. After which you can install locally to your workspace and use |
It's time. |
@octref Please reopen this issue ,
This answer not working ! |
TS 3.7 might break other functionalities of Vetur, so I can't just upgrade. |
Yup, can confirm that |
Is it intended not to work within template tags? Or does typescript only work within script tags? |
Using TypeScript 3.7 breaks intellisense for me. |
Should we reopen? Seems like vetur is not compatible with TS 3.7 fully |
What exactly is broken for you? |
Well, if you're not using TypeScript, then it's a separate issue, I think. useWorkspaceDependencies just allows you to use the TS that is in your package.json rather than the bundled one |
Is there any reason why |
For those that have multiple projects in their VS workspace. This seems to be the problem for me, I hope that points some of you in the right direction. I have found two solutions for now:
I'm hoping someone knows how to fix this and can help me? Ideally I want a way to get Vetur to detect the deepest dependencies and then work from there. I assume this is how Visual Studio itself works, maybe there is a way I can get Vetur to do the same? |
What is required to get this working within template tags? Is that an issue with eslint-plugin-vue which is used to validate templates? |
let b = a?.b?.c?.s
The text was updated successfully, but these errors were encountered: