Closed Sanshain closed 1 week ago
vscode ts error on jsx files:
jsx support Cannot find name 'React'. Did you mean 'preact'?
Check in tsconfig.json following options:
tsconfig.json
"jsx": "react-jsx", "jsxImportSource": "preact", "allowJs": true, "outDir": "./dist/built", // or other dir
That's it
Trouble:
vscode ts error on jsx files:
How to resolve
Check in
tsconfig.json
following options:That's it