Closed
Description
Hi,
JavaScript and TypeScript Nightly version 5.7.20240928
and subsequent versions report the above message.
Next.js 13 or 14, pages router
Windows 10 with WSL2
VSCode 1.93.1
This is a React Fragment and there are several workarounds, but none of them are desired:
- import React obviously
- change
"jsx": "preserve"
-> to"jsx": "react-jsx"
intsconfig.json
in which case Next will slap you
- change to
div
or whatever :)
On a side note ESLint doesn't pick it up when linting, but then again it's misleading.
Thanks!