-
Notifications
You must be signed in to change notification settings - Fork 2k
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
主项目使用vue3.0 , 子项目使用ts+react , 刷新报错 #1299
Comments
新增环境变量,写死端口就可以了 Line 4 in 2bf9194
|
把端口写进去也不行,感觉应该是版本的问题,我的vue 3.0+ts是最新的版本,react 项目使用的creat-react-app + ts官方脚手架,最新版本17,安装最新的react-app-rewired 可能最新版本改动,按照const { name } = require("./package.json"); module.exports = { // Remove 'react-refresh' from the loaders. for (const one of rule.oneOf) { config.plugins = config.plugins.filter( return config; |
主项目使用vue3.0,子项目使用ts+react,使用create-react-app脚手架,而后使用react-app-rewired命令时,看了issure,将

这样修改报错,config.entry.filter 不是一个function,
打印发现不是一个数组,但是去掉这句话,react项目刷新报错
取消了热更新,项目刷新就报错,
The text was updated successfully, but these errors were encountered: