You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't know if this classifies as a bug or as an enhancement.
Describe the bug
A recent commit on plugin-react-refresh introduced a use of optional chaining, which requires Node 14+. Vite's documentation specifies that Node 12+ is required. This may be true for Vite itself but isn't true anymore for Vite React projects.
Reproduction
Initialize a vitejs project with plugin-react-refresh 1.2.0 on Node 12.x, run npm run dev, and observe:
I don't know if this classifies as a bug or as an enhancement.
Describe the bug
A recent commit on plugin-react-refresh introduced a use of optional chaining, which requires Node 14+. Vite's documentation specifies that Node 12+ is required. This may be true for Vite itself but isn't true anymore for Vite React projects.
Reproduction
Initialize a vitejs project with
plugin-react-refresh
1.2.0 on Node 12.x, runnpm run dev
, and observe:Potential fixes
plugin-react-refresh
to TypeScript so optional chaining gets transpiledSystem Info
vite
version: 2.0.0-beta.61The text was updated successfully, but these errors were encountered: