-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
lsp: JSX cannot be used #8993
Comments
It should just work, it is a bug with the lsp that we need to fix. |
Is there a work around I can use in the mean time? I tried adding a tsconfig.json which from what I've read should fix it. But it seems like deno_vscode doesn't pick up on it. {
"compilerOptions": {
"jsx": "react-jsx",
}
} Or maybe no changes in a tsconfig.json can help, it must be done in the lsp? |
If you use the canary channel of Deno, there should be support for |
I set
{
"files.eol": "\n",
"files.trimTrailingWhitespace": true,
"files.exclude": {
"**/.git": true,
"**/.DS_Store": true,
"**/Thumbs.db": true,
"**/.aleph": true
},
"deno.enable": true,
"deno.config": "./tsconfig.json",
"deno.unstable": false,
"deno.import_map": "./import_map.json"
}
{
"exclude": [
"**/*"
],
"compilerOptions": {
"jsx": "react-jsx"
}
} Also are you referring to Canary for the deno or vscode_deno? (I'm using |
I'm having this error with the Canary version of the vscode extension, no problem with the stable one. |
Just got this out of nowhere after working with fresh for about 2 hours. 👀 |
I think it's because I had some malformed TSX, if you're seeing this just piece it back together and check for bugs. Weird message tho |
How can I pass the
--jsx
flag to the deno lsp?Describe the bug
While using the Canary extension, I get the following errors all over my project.
Versions
vscode: 1.52.1
deno: 1.6.3
extension: 0.0.6
The text was updated successfully, but these errors were encountered: