-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
与@vitejs/plugin-react@^4.0.0一起会报错,v4以下没有报错 #13
Comments
能否提供可复现的 git 仓库,确保我能完全解决这个问题 |
使用vite官方提供的模板即可,npm create vite@latest my-react-app -- --template react-ts |
你的example中vite_react示例将vite和@vitejs/plugin-react更新到最新也会复现 |
好的,谢谢,我看看 |
@leowang1028 你好,是因为 v4 版本删除了禁用 fastRefresh 的选项导致的错误,你可以参考下这个讨论 vitejs/vite-plugin-react#151 或者暂时恢复到 v3,等待 vite react 插件有好的解决方案 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: