微信小程序错误集合

微信小程序错误处理:

今天打开微信小程序开发工具发现项目完全编译不了,都是一样的错误,开始以为是页面写错了,替换了几个路径都不行,仔细检查发现了一个鬼,遇到的可以参考。

错误代码:

WAService.js:1 Failed to load resource: the server responded with a status of 500 (Internal Server Error)
util.js:1 Uncaught ReferenceError: define is not defined
    at util.js:1
(anonymous) @ util.js:1
appraise.js:1 Uncaught ReferenceError: define is not defined
    at appraise.js:1
(anonymous) @ appraise.js:1
express.js:1 Uncaught ReferenceError: define is not defined
    at express.js:1
(anonymous) @ express.js:1
classify.js:1 Uncaught ReferenceError: define is not defined
    at classify.js:1
(anonymous) @ classify.js:1
cart.js:1 Uncaught ReferenceError: define is not defined
    at cart.js:1
(anonymous) @ cart.js:1
groupBuyDetail.js:1 Uncaught ReferenceError: define is not defined
    at groupBuyDetail.js:1
(anonymous) @ groupBuyDetail.js:1
weapp.qrcode.js:1 Uncaught ReferenceError: define is not defined
    at weapp.qrcode.js:1
(anonymous) @ weapp.qrcode.js:1
my.js:1 Uncaught ReferenceError: define is not defined
    at my.js:1
(anonymous) @ my.js:1
groupBuyHome.js:1 Uncaught ReferenceError: define is not defined
    at groupBuyHome.js:1
(anonymous) @ groupBuyHome.js:1
index.js:1 Uncaught ReferenceError: define is not defined
    at index.js:1
(anonymous) @ index.js:1
logs.js:1 Uncaught ReferenceError: define is not defined
    at logs.js:1
(anonymous) @ logs.js:1
myOrder.js:1 Uncaught ReferenceError: define is not defined
    at myOrder.js:1
(anonymous) @ myOrder.js:1
orderConfirm.js:1 Uncaught ReferenceError: define is not defined
    at orderConfirm.js:1
(anonymous) @ orderConfirm.js:1
orderDetail.js:1 Uncaught ReferenceError: define is not defined
    at orderDetail.js:1
(anonymous) @ orderDetail.js:1
shareEat.js:1 Uncaught ReferenceError: define is not defined
    at shareEat.js:1
(anonymous) @ shareEat.js:1
sharePoster.js:1 Uncaught ReferenceError: define is not defined
    at sharePoster.js:1
(anonymous) @ sharePoster.js:1
app.js:1 Uncaught ReferenceError: define is not defined
    at app.js:1
(anonymous) @ app.js:1
VM68:1 Uncaught ReferenceError: require is not defined
    at <anonymous>:1:1
    at HTMLScriptElement.scriptLoaded (appservice?t=1589356051023:1860)
    at HTMLScriptElement.script.onload (appservice?t=1589356051023:1872)
(anonymous) @ VM68:1
scriptLoaded @ appservice?t=1589356051023:1860
script.onload @ appservice?t=1589356051023:1872
load (async)
(anonymous) @ appservice?t=1589356051023:1871
(anonymous) @ appservice?t=1589356051023:1924
VM69:4 Wed May 13 2020 15:47:39 GMT+0800 (中国标准时间) sitemap 索引情况提示
VM30:1  根据 sitemap 的规则[0],当前页面 [pages/my/my] 将被索引
console.warn @ VM30:1
(anonymous) @ VM69:6
(anonymous) @ VM69:13
VM70:1 Wed May 13 2020 15:47:39 GMT+0800 (中国标准时间) 渲染层错误
VM30:1 Uncaught ReferenceError: wx is not defined
console.error @ VM30:1
(anonymous) @ VM70:2

造成的原因:

调用基础错误 前面的叹号 是网络错误,简单说就是基础库没有下载下来,更换一个基础库

调整后正常编译

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值