原先小程序的项目,要求打包成app,报错
报错内容如下:
10:23:25.328 (found at pages/tabbar/index/index.vue:1)
10:23:25.350 ReferenceError: __wxConfig is not defined
10:23:25.370 page is not ready at view.umd.min.js:1
10:23:25.391 TypeError: Cannot read properties of undefined (reading 'querySelector') at view.umd.min.js:1
10:23:25.473 ReferenceError: __wxConfig is not defined
10:23:25.493 ReferenceError: __wxConfig is not defined
10:23:25.514 ReferenceError: __wxConfig is not defined
10:23:25.534 ReferenceError: __wxConfig is not defined
10:23:25.556 ReferenceError: __wxConfig is not defined
10:23:25.575 ReferenceError: __wxConfig is not defined
10:23:25.596 LogOut: token is undefined! at store/modules/user.ts:118
10:23:25.617 ReferenceError: __wxConfig is not defined
回答:
可以看下这几个链接,和你报的错一样的:
1:使用了代理的
2:路径错了的
3:登录失效的
以上是 原先小程序的项目,要求打包成app,报错 的全部内容, 来源链接: utcz.com/p/936892.html