Next.js Discord

Discord Forum

vscode can not parse page.tsx after initiation

Unanswered
English Foxhound posted this in #help-forum
Open in Discord
English FoxhoundOP
Hey folks. I used create-next-app to create the app, and then the editor can not parse the tsx properly, error:
Cannot find name 'div'.ts(2304)


Any ideas? I suspect it is something wrong with vscode, but I have tried resetting everything

5 Replies

Either way it is harmless and should go away soon
Restart vscode, restart ts server, run npm run dev, etc
Ofc ensure you have installed the dependencies
English FoxhoundOP
Just tried, doesn't work :lolsob: