game.json:
{
"deviceOrientation": "portrait",
"workers": "workers"
}
加了这2个文件
workers/request/index.js
workers/response/index.js
game.js加了
import './js/libs/weapp-adapter'
import './js/libs/symbol'
var worker = wx.createWorker('workers/request/index.js') // 文件名指定 worker 的入口文件路径,绝对路径
在微信开发工具显示
VM32:4 Uncaught Error: module "workers/request/index.js" is not defined
at require (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:4:13753)
at o (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:4:11777)
at eval (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:4:11144)
at eval (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:1:4058)
at Array.forEach (<anonymous>)
at Object.v (eval at self.onmessage.event (weixinworker.js:6), <anonymous>:1:4016)
at self.onmessage.event (weixinworker.js:10)
用手机打开显示
thirdScriptError
worker uncaught third Error
undefined
维护人员呢 出来解决一下
坑啊,重启下,有时可以解决
这个问题解决了吗????我也遇到同样的问题
搞不定
请问解决了吗?