VsCode: Cannot find name react

Does anyone know how to fix this annoying warning, this is not happening at all on intellij.
No description
5 Replies
mrVinicius
mrViniciusOP7mo ago
i figured out, vscode cannot differentiate between index.ts and index.tsx, i had both of them and their intellisense or whatever got them mixed.
Hayden
Hayden7mo ago
you can just restart ts server, it works for me its kind of random, when you edit the file it displays this error yeah
mrVinicius
mrViniciusOP7mo ago
Nah it didn't work, i asked in their repo and the response i got is this is intentional and i need to configure my ts file. https://github.com/microsoft/TypeScript/issues/58844#issuecomment-2166344485
GitHub
Cannot find name react. · Issue #58844 · microsoft/TypeScript
I'm getting an annoying error saying it "Cannot find name react." However, im not using React at all, i'm using SolidJS. Everything is working smoothly on Intellij IDEA.
mrVinicius
mrViniciusOP7mo ago
but since this is not important i just renamed to internal.tsx, since i won't distribute this file is just for internal visualization of the components i'll be building
Hayden
Hayden7mo ago
oh okay i see
Want results from more Discord servers?
Add your server