icebreaker99
icebreaker99
  • 发布:2021-09-13 02:24
  • 更新:2021-09-13 02:24
  • 阅读:768

【报Bug】vue-cli 创建的项目,到支付宝小程序内报错

分类:uni-app

产品分类: uniapp/小程序/阿里

PC开发环境操作系统: Windows

PC开发环境操作系统版本号: 10

第三方开发者工具版本号: latest

基础库版本号: latest

项目创建方式: CLI

CLI版本号: latest

操作步骤:

使用官网上的vue-cli教程新建的vue 2 +ts 项目

预期结果:

成功编译到支付宝

实际结果:

失败

8d9a109c-3d5c-40cb-9435-c3c0b3462258:1 TypeError: Function(...) is not a function  
    at Object../common/vendor.js (vendor.js:11873)  
    at __webpack_require__ (runtime.js:92)  
    at Object../common/vendor.js (vendor.js:11112)  
    at __webpack_require__ (runtime.js:92)  
    at Object.<anonymous> (vendor.js:19442)  
    at Object.<anonymous> (vendor.js:19529)  
    at __webpack_require__ (runtime.js:92)  
    at Object.<anonymous> (mp-html.js:40)  
    at Object._ (mp-html.js:292)  
    at __webpack_require__ (runtime.js:92)  

af-appx.worker.min.js:26 Error: page 'pages/index/index' not found!  
    at kn (af-appx.worker.min.js:26)  
    at Cr.Gn [as newPage] (af-appx.worker.min.js:26)  
    at af-appx.worker.min.js:26

bug描述:

8d9a109c-3d5c-40cb-9435-c3c0b3462258:1 TypeError: Function(...) is not a function
at Object../common/vendor.js (vendor.js:11873)
at webpack_require (runtime.js:92)
at Object../common/vendor.js (vendor.js:11112)
at
webpack_require
(runtime.js:92)
at Object.<anonymous> (vendor.js:19442)
at Object.<anonymous> (vendor.js:19529)
at webpack_require_ (runtime.js:92)
at Object.<anonymous> (mp-html.js:40)
at Object.
(mp-html.js:292)
at
webpack_require__ (runtime.js:92)

// problems, please detail your unique predicament in a GitHub issue.
if (typeof globalThis === "object") {
globalThis.regeneratorRuntime = runtime;
} else {
Function("r", "regeneratorRuntime = r")(runtime);
}
}

去安装了最新版本的 regenerator-runtime 无效

微信小程序没有这个问题

支付宝小程序一编译,就是 page not found

参考了 https://github.com/dcloudio/uni-app/issues/1932

和 https://ask.dcloud.net.cn/question/101714

没用,我是用 vue-cli 的

2021-09-13 02:24 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复