-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
升级3.5.7后Uncaught ReferenceError: $RefreshSig$ is not defined #12685
Comments
没有具体的项目可供复现,正常是无该问题的。 当前出现问题猜测是由于处于生产模式,但却开启热更新导致插件抛出该问题。请检查编译项目时是否启用 watch 模式,同时检查是否存在 webpackChain 传入 |
同样的问题 +1. |
1 similar comment
同样的问题 +1. |
执行的是"dev:h5": "npm run build:h5 -- --watch",且不存在 传入 mode: production。 |
我是做了自定义环境变量 module.exports = function (merge) {
if (process.env.NODE_ENV === 'development') {
return merge({}, config, require('./dev'));
}
if (process.env.NODE_ENV === 'staging') {
return merge({}, config, require('./staging'));
}
return merge({}, config, require('./prod'));
}; |
同样的问题+1 |
可以采用这样的方式开暂时处理一下。 |
确实存在,在使用 webpack5-runner 编译时,禁用 prebundle 条件下复现了该问题,后续修复。 当前版本可以通过在 module. Exports = {
env: {
NODE_ENV: '"development"'
},
defineConstants: {
},
+ isWatch: true,
mini: {},
h5: {}
} |
晕 刚从3.0更新到3.5.7 然后又得更到3.5.8 |
相关平台
H5
浏览器版本: 版本 105.0.5195.125(正式版本) (x86_64)
使用框架: React
复现步骤
项目由3.5.5 执行update指令后,重新运行即报错,目前能根据https://docs.taro.zone/docs/h5#fast-refresh中的提示关闭热跟新解决
期望结果
期望能够都启用hot时,不报错
实际结果
Uncaught (in promise) ReferenceError:$RefreshSig$ is not defined
环境信息
The text was updated successfully, but these errors were encountered: