-
Notifications
You must be signed in to change notification settings - Fork 574
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
加载子应用后运行报错 Module scripts don't support importScripts(). #1410
Comments
Hello @YaoJianqun. In order to facilitate location and troubleshooting, we need you to provide a realistic GitHub repository. |
@YaoJianqun ,换成module的导入导出方式就可以了,详细可参考如下 utils.js function performComplexCalculation() {
return "calculation";
}
export default performComplexCalculation worker.js import performComplexCalculation from 'http://localhost:6616/utils.js'
onmessage = function (event) {
console.log(`主线程接收: ${event.data}`)
const result = performComplexCalculation()
postMessage(result)
} |
Since the issue was labeled with |
问题描述
加载子应用后执行报错,实测1.0.0-rc.9及之后的版本都有这个问题,1.0.0-rc.8 正常运行,
上传截图
环境信息
The text was updated successfully, but these errors were encountered: