hbuilderx alpha版本 升级2.8.0 运行之前钉钉小程序项目,空项目正常 async await 异步请求出现该问题,取消异步请求正常
- 发布:2020-07-16 12:53
- 更新:2020-08-05 20:14
- 阅读:2831
产品分类: uniapp/App
PC开发环境操作系统: Mac
PC开发环境操作系统版本号: 10.15.5
HBuilderX类型: Alpha
HBuilderX版本号: 2.8.0
手机系统: iOS
手机系统版本号: iOS 13.4
手机厂商: 模拟器
手机机型: iphone 6s
页面类型: vue
打包方式: 云端
项目创建方式: HBuilderX
操作步骤:
预期结果:
运行正常
运行正常
实际结果:
报错,没有走到业务逻辑代码就报错了
报错,没有走到业务逻辑代码就报错了
bug描述:
钉钉小程序在2.8.0版本中运行 钉钉模拟器报错 回退版本 即可正常
Uncaught TypeError: Function(...) is not a function
at Object../common/vendor.js (vendor.js:9367)
at webpack_require (runtime.js:92)
at Object../common/vendor.js (vendor.js:8630)
at webpack_require (runtime.js:92)
at Object.<anonymous> (vendor.js:8532)
at Object../common/vendor.js (vendor.js:8621)
at webpack_require (runtime.js:92)
at Object.<anonymous> (main.js:12)
at Object../common/main.js (main.js:53)
at webpack_require (runtime.js:92)
./common/vendor.js @ vendor.js:9367
webpack_require @ runtime.js:92
./common/vendor.js @ vendor.js:8630
webpack_require @ runtime.js:92
(anonymous) @ vendor.js:8532
./common/vendor.js @ vendor.js:8621
webpack_require @ runtime.js:92
(anonymous) @ main.js:12
./common/main.js @ main.js:53
webpack_require @ runtime.js:92
checkDeferredModules @ runtime.js:48
webpackJsonpCallback @ runtime.js:35
./common/main.js @ main.js:1
webpack_require @ bootstrap:19
./app.js @ app.js:4
webpack_require @ bootstrap:19
success @ index$.worker.js:31
start @ af-appx.worker.ide.js:5390
g.bootstrapApp @ af-appx.worker.ide.js:5397
./.tea/entryFiles-development/index$.worker.js @ index$.worker.js:43
webpack_require @ bootstrap:19
0 @ user.js:2
webpack_require @ bootstrap:19
(anonymous) @ bootstrap:83
(anonymous) @ bootstrap:83
[WORKER] onerror Uncaught TypeError: Function(...) is not a function
setTimeout (async)
g.setTimeout @ af-appx.worker.ide.js:2581
console.error @ bridge.js:1
g.onerror @ af-appx.worker.ide.js:5361
error (async)
./src/framework/index.worker.tsx @ af-appx.worker.ide.js:5346
webpack_require @ af-appx.worker.ide.js:18
./src/framework/dev.tsx @ af-appx.worker.ide.js:5299
webpack_require @ af-appx.worker.ide.js:18
./src/bridge/dingtalk.worker.tsx @ af-appx.worker.ide.js:3702
webpack_require @ af-appx.worker.ide.js:18
./src/bridge/index.worker.tsx @ af-appx.worker.ide.js:3861
webpack_require @ af-appx.worker.ide.js:18
./src/common.tsx @ af-appx.worker.ide.js:5221
webpack_require @ af-appx.worker.ide.js:18
./src/index.worker.tsx @ af-appx.worker.ide.js:5412
webpack_require @ af-appx.worker.ide.js:18
0 @ af-appx.worker.ide.js:5893
__webpack_require__ @ af-appx.worker.ide.js:18
AFAppX../node_modules/@ali/appx-dd/es/bridge/Animation.js @ af-appx.worker.ide.js:70
(anonymous) @ af-appx.worker.ide.js:71
TypeError: Cannot read property 'newPage' of undefined
at Object.fn (bridge.js:1)
at HTMLDocument.document.dispatchEvent (bridge.js:1)
at <anonymous>:1:10
setTimeout (async)
g.setTimeout @ af-appx.worker.ide.js:2581
s.(anonymous function) @ bridge.js:1
document.dispatchEvent @ bridge.js:1
(anonymous) @ VM106:1
WebFrame.(anonymous function) @ VM99 web-frame.js:56
electron.ipcRenderer.on @ VM83 web-frame-init.js:36
emit @ VM18 events.js:182
[WORKER] onerror TypeError: Cannot read property 'newPage' of undefined
at Object.fn (bridge.js:1)
at HTMLDocument.document.dispatchEvent (bridge.js:1)
at <anonymous>:1:10
2 个回复
DCloud_uni-ad_HDX
Bug已确认
当前版本解决方案
1.
HBuilderX\plugins\uniapp-cli\package.json
dependencies
节点增加 "regenerator-runtime": "^0.12.1",2.替换下面附件中文件到 HBuilderX\plugins\uniapp-cli\node_modules\regenerator-runtime\
DCloud_uni-ad_HDX
HBuilderX 2.8.2+ 已修复