-
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
每次编译时提示警报:WARNING in external "taro_app_library@/remoteEntry.js" #15413
Comments
我也遇到了这个问题,不知道是怎么解决的哇 |
俺也一样,主要在微信小程序中预览效果,后来一看H5版本就编译告警,一开始没有,后来加了几个页面就出来了。 |
一样 |
我目前是这样解决的:在src/config/index.ts文件中配置compiler: |
这是因为 webpack v5.90.0+ 新增了个 目前临时的解决方案如下:
/* config/index.ts */
const config = {
...
compiler: {
prebundle: {
enable: false,
},
type: 'webpack5'
},
}
/* config/index.ts */
const config = {
h5: {
output: {
environment: {
asyncFunction: true,
},
...
},
}
} 以上是临时的解决方法,问题出在 |
貌似方法二没有生效 |
应设为true /* config/index.ts */
const config = {
h5: {
output: {
environment: {
asyncFunction: true,
},
...
},
}
} |
相关平台
H5
浏览器版本: Chrome
使用框架: React
复现步骤
期望结果
不提示警告或者错误信息
实际结果
浏览器提示:
环境信息
The text was updated successfully, but these errors were encountered: