Cannot find name 'React' when using Astro + TypeScript
I configured my Astro project to use SolidJS and even though I added the required
tsconfig.json
VSCode highlights every JSX tag with an error:
Cannot find name 'React'.ts(2304)
Astro compiles and runs fine, and tsc --noEmit
also shows no errors.
Am I missing something?4 Replies
post the tsconfig
(I'm using TS 5.0rc1 here, but I tried on 4 and it also doesn't work)
and are you certain your vscode plugin is using this config?
maybe try changing something to break something and check
ha, "include" was missing tsx (as I wasn't using tsx yet)