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
Throwing Error on Optional Chaining (TS 3.7.2) #1027
Comments
#1025 related. Just saw this automated PR is out but failing |
As a note, v3.1.0 of the plugin (which is in preview) does successfully work with TS v3.7.2 |
Version 3.0 is now released to the normal extension location. |
VSCode is still on 3.6.x, you need to force it to use the locally installed typescript in node_modules (to 3.7.2), see https://code.visualstudio.com/docs/typescript/typescript-compiling#_using-newer-typescript-versions |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Summary
Prettier VSCode plugin is failing on new TypeScript in version 3.7.2 syntax (specifically optional chaining). Prettier 1.19.1 was release on 11/8/2019 adding support prettier/prettier#6469
Steps To Reproduce:
x?.y
to a TS fileOutput
window of VSCode, and there will be an error ofExpression expected
pointing to the?.
Expected result
No error should be thrown, and auto-format should succeed
Actual result
See steps to reproduce
VS Code Version: 1.40.0
Prettier & Prettier Plugin Version: 1.19.1 and 2.3.0 respectively
OS and version: macOS 10.14.6
The text was updated successfully, but these errors were encountered: