We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Rax Core
错误内容: TypeError: Cannot read property 'webpackHotUpdatescf' of undefined
希望解决错误。
微信开发者工具
module.exports = { targets: ['web', 'wechat-miniprogram'], // targets: ['wechat-miniprogram'], webpack5: true, plugins: ['build-plugin-fusion-mobile', './build.plugin.js'], inlineStyle: false, 'wechat-miniprogram': { nativeConfig: { appid: 'wx8407a97a7b55d6cd', setting: { ignoreDevUnusedFiles: false, ignoreUploadUnusedFiles: false, }, }, subPackages: true, }, web: { mpa: true, tabbar: true, }, };
No response
The text was updated successfully, but these errors were encountered:
只有跨包跳转时才会报错TypeError: Cannot read property 'webpackHotUpdatescf' of undefined。即主包跳转分包页面时报错
Sorry, something went wrong.
已解决,如果小程序分包模式,通过禁用热更新的方法可以解决以上错误。 // 禁用热更新模块启动 yarn start:local -- --disable-reload
去掉热更新也还是会报错TypeError: Cannot read property 'webpackHotUpdatescf' of undefined
No branches or pull requests
⌨️
Where is the bug from?
Rax Core
Minimal code and steps to reproduce the bug
错误内容:
TypeError: Cannot read property 'webpackHotUpdatescf' of undefined
Current and expected behavior
希望解决错误。
Environment
微信开发者工具
build.json
module.exports = {
targets: ['web', 'wechat-miniprogram'],
// targets: ['wechat-miniprogram'],
webpack5: true,
plugins: ['build-plugin-fusion-mobile', './build.plugin.js'],
inlineStyle: false,
'wechat-miniprogram': {
nativeConfig: {
appid: 'wx8407a97a7b55d6cd',
setting: {
ignoreDevUnusedFiles: false,
ignoreUploadUnusedFiles: false,
},
},
subPackages: true,
},
web: {
mpa: true,
tabbar: true,
},
};
Possible solution
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: