-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
This can only be used in ts files #408
Comments
The same problem occurs when trying to use ES7 |
isn't VS Code based on Atom? |
It uses Electron core. But the JS linting is handled by TypeScript I believe for the IntelliSense support (which, I have to say, is so much better than Atom) |
Yeah |
We will make JSX better supported in the near future |
Any workarounds? If VSCode can't handle the ES6+JSX syntax, I need some way to get it out of the way. Otherwise, everyone's going to tell me to get knotted and go back to Sublime Text. |
[UPDATE: if you're seeing "This can only be used in ts files." in your plain JavaScript, drop in a Worse, @jrieken,
All those errors get displayed as hover-over on the squiggly red line under the |
In 0.10.6 you can disable the validation using a setting "javascript.validate.enable": true In 0.10.7 that will become available this week, we provide a preview of the new JS infrastructure that supports JSX, pls give it a try. |
here is how to get 0.10.7 build: https://code.visualstudio.com/insiders |
Closed with the adoption of Salsa. |
Hi,
I have the following code while using Babel.
This is my config:
Why do I get the following error:
here:
The text was updated successfully, but these errors were encountered: