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
Error "Cannot use JSX unless the '--jsx' flag is provided" in all SFC since 0.34.0 #1153
Comments
I am also seeing this error, but it doesn't seem to appear on my |
I am also seeing this error, in a quasar project. |
Me too, |
Adding |
v0.34.0 - same problem |
This error came to me too :( |
@antfu Also found this workaround, but this seems to turn off the type checking for some reason. The current workaround I found is to add the |
Template type-checking base on JSX, so |
For quasar (in my case |
I faced this error after creating a new project with vue cli. In these lines:
|
Still an issue for me with a Quasar project after trying both workarounds. Any other ideas? |
Issue here with quasar and volar also. Not using a TS project so also do not have a tsconfig. Edit Downgraded to 0.33.10 for now. |
@Jawsingale fixed in 6a1844b. |
@johnsoncodehk Still having the same problem with latest: 0.34.4. |
Same :-/ |
@vandelpavel the fixed is only for no tsconfig / jsconfig project, and it's not release yet, it will with 0.34.5. |
@vandelpavel @Jawsingale This fix will be reflected in the next version (v0.34.5?). There may be other fixes or adjustments, so until they are released, please downgrade to a version that is not problematic and use it. |
@johnsoncodehk Just hit this problem too. Is |
This problem seems to be back. |
Volar issue here vuejs/language-tools#1153
I am experiencing the same problem while learning quasar. Never had this problem with my testing project yeterday |
I Solved the issue by adding : in my nuxt/vue project |
Thank you for sharing your solution. Tested and it worked on my learning project using quasar. |
OK good..
…On Fri, Jun 17, 2022, 6:04 PM ReaganM02 ***@***.***> wrote:
I Solved the issue by adding : jsx": "preserve to the jsconfig.json
folder. the new content in jsconfig.json looks like this {
"compilerOptions": { "jsx": "preserve", "baseUrl": ".", "paths": { "~/*":
["./*"], "@/*": ["./*"], "~~/*": ["./*"], "@@/*": ["./*"] } }, "exclude":
["node_modules", ".nuxt", "dist"] }
in my nuxt/vue project
Thank you for sharing your solution. Tested and it worked on my learning
project using quasar.
—
Reply to this email directly, view it on GitHub
<#1153 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/APENNF7XQOVRZWTYW4JDXOLVPSVYVANCNFSM5S7277PA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
I have this problem too. I used "jsx": "prevense" and this line fixed it. |
This doesn't work for me. Volar just shows different errors |
also stuck using |
on |
Looks like |
Add a little formatting here. {
"compilerOptions": {
"jsx": "preserve",
"baseUrl": ".",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
"~~/*": ["./*"],
"@@/*": ["./*"]
}
},
"exclude": ["node_modules", ".nuxt", "dist"]
} |
Sorry, after re-reading the conversation it's clear that this is indeed expected behavior: #1153 (comment) |
Using 0.38.5 and getting this error only with my git hook Workaround is to use |
version |
Now I get the issue src/app.vue(58,49): error TS2339: Property '$vuetify' does not exist on type 'Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, ...>>'.
node_modules/@types/webpack/index.d.ts(32,3): error TS2305: Module '"tapable"' has no exported member 'Tapable'.
node_modules/@types/webpack/index.d.ts(1062,23): error TS2707: Generic type 'SyncWaterfallHook<T, AdditionalOptions>' requires between 1 and 2 type arguments. The workaround still works to fix it: |
|
Happens again and again the workaround |
Maybe this will help for whose use the
|
I receive the error "Cannot use JSX unless the '--jsx' flag is provided" in all singe file components since i updated the vscode plugin to version 0.34.0. The error is not reproducible in version 0.33.10 and before.
The text was updated successfully, but these errors were encountered: