微信小程序报错Page “pages/…” has not been registered yet的解决方法

图片[1]-微信小程序报错Page “pages/…” has not been registered yet的解决方法-樱花源码

今天使用 uni-APP 编译后的代码导入微信小程序,结果控制台报错:

app.js错误:
 TypeError: Cannot read property 'mark' of undefined
    at vendor.js? [sm]:14806
    at vendor.js? [sm]:14806
    at Module.<anonymous> (vendor.js? [sm]:14806)
    at Module.<anonymous> (vendor.js? [sm]:14928)
    at __webpack_require__ (runtime.js? [sm]:92)
    at Module.<anonymous> (vendor.js? [sm]:13981)
    at Module.<anonymous> (vendor.js? [sm]:14144)
    at __webpack_require__ (runtime.js? [sm]:92)
    at Object.<anonymous> (main.js? [sm]:24)
    at Object.<anonymous> (main.js? [sm]:49)(env: WINDOWS,mp,1.05.2103262; lib: 2.16.0)
TypeError: Cannot read property 'mark' of undefined
    at vendor.js? [sm]:14806
    at vendor.js? [sm]:14806
    at Module.<anonymous> (vendor.js? [sm]:14806)
    at Module.<anonymous> (vendor.js? [sm]:14928)
    at __webpack_require__ (runtime.js? [sm]:92)
    at Module.<anonymous> (vendor.js? [sm]:13981)
    at Module.<anonymous> (vendor.js? [sm]:14144)
    at __webpack_require__ (runtime.js? [sm]:92)
    at Object.<anonymous> (main.js? [sm]:24)
    at Object.<anonymous> (main.js? [sm]:49)(env: Windows,mp,1.05.2103262; lib: 2.16.0)
Page "pages/index/index" has not been registered yet.

解决方法:

微信开发者工具——详情——ES6 转 ES5 前面的勾去掉就可以了。

免责声明:本站所提供的所有资源来自于网络,版权争议与本站无关,版权归原创者所有!仅限用于学习和研究为目的,不得将上述内容资源用于商业或者非法用途,否则,一切后果请用户自负。本站也不承担用户因使用这些下载资源对自己和他人造成任何形式的损失或伤害。如果上述内容对您的版权或者利益造成损害,请提供相应的资质证明,我们将于3个工作日内予以删除。如有侵权、不妥之处,请联系站长以便删除。 敬请谅解!
THE END
点赞0
分享
评论 抢沙发

请登录后发表评论