migrating from v2 to v4 - Error: @vitejs/plugin-react can't detect preamble.
#17610
Unanswered
felixhaeberle
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey, I'm currently working on a project that used vite v2, and we are updating it to v4.
Problem
See: #1984 (comment)
We are using the react-refresh helper snippet provided in this comment, which doesn't work any longer.
The previous code which worked for vite v2 doesn't work any longer for vite v4, and I'm wondering why this is.
I've already updated the port to match the new default port
5173
, without luck.Vite config
System info
Code (vscode extension):
Errors
&
Beta Was this translation helpful? Give feedback.
All reactions