Having to add import react from "react" for each file

i just made a new extension by git cloning my old one and just one small issue is that I have to add import react from "React" in each ,tsx file and in tsconfig, I have to add "jsx": "react", "compilerOptions": { "jsx": "react", "paths": { "~": [ "./" ] }, "baseUrl": "." } } anyone know how to resolve this?
1 Reply
alanek2009
alanek2009•2y ago
what's the react version in your package.json?
Want results from more Discord servers?
Add your server