Closed luisjunco closed 6 days ago
same issue~
+1 also encountering same issue
The tsconfig.json file in default Reactjs project template references tsconfig.app.json which has the compiler option, but doesn't seem to be picked up. When I put the the jsx compiler option in tsconfig.json, the issue was resolved.
Here is a fresh empty project with the compiler option added to the tsconfig.json.
I'm not saying this is the solution, just what I discovered. Hopefully this helps shed some light on the issue.
it works for me put this in tsconfig.json
"compilerOptions": {
"jsx": "react-jsx"
},
We are aware of this issue and we have a fix for it. I will try to get it released today.
This is now released. If you run into any other issues with the fix, let us know so we can address them.
Describe the bug
Hi,
when you create a new app with the template "React TypeScript", the app runs but the editor is showing this TypeScript error (screenshot attached):
This error appears right from the beginning (i.e., without making any changes to the code or configuration).
Link to the blitz that caused the error
https://stackblitz.com/edit/vitejs-vite-gfg6bq?file=src%2FApp.tsx
Steps to reproduce
Expected behavior
I'd expect the template to work without errors from the beginning and without having to touch ts config files.
Parity with Local
Screenshots
Platform
Additional context
Note: I had to mark the checkbox "I have run the project in my local machine" (it seems to be a required field, can not submit the form template without marking it). However, I have only tested on the web version.