最新消息:20190529 VPS服务器已从腾讯云香港换为Vultr新加坡,主题仍用朋友推荐的大前端D8

【已解决】微信小程序出错:index.js:1 Uncaught ReferenceError: define is not defined(anonymous function)

小程序 crifan 3016浏览 0评论

折腾:

【记录】把已有的微信小程序项目继续开发

期间,已经解决了:

【已解决】微信小程序导入后出错:contentScript.js:1 因为网络代理软件或者 VPN 影响,工具无法加载本地模拟开发服务

但是又出现:

index.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ index.js:1
util.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ util.js:1
app.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ app.js:1
index.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ index.js:1
appservice:16 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:17  pages/index/index 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:17
logs.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ logs.js:1
appservice:22 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:23  pages/logs/logs 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:23
customerNew.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ customerNew.js:1
appservice:28 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:29  pages/customer/customerNew 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:29
customerList.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ customerList.js:1
appservice:34 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:35  pages/customer/customerList 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:35
followupNew.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ followupNew.js:1
appservice:40 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:41  pages/followup/followupNew 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:41
taskList.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ taskList.js:1
appservice:46 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:47  pages/task/taskList 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:47
customerDetail.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ customerDetail.js:1
appservice:52 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:53  pages/customer/customerDetail 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:53
search.js:1 Uncaught ReferenceError: define is not defined(anonymous function) @ search.js:1
appservice:58 Mon Jul 31 2017 20:37:22 GMT+0800 (CST) page 编译错误
appservice:59  pages/search/search 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:59

【总结】

后来,在继续去解决:

【已解决】微信小程序导入后出错:contentScript.js:1 因为网络代理软件或者 VPN 影响,工具无法加载本地模拟开发服务

后,设置不使用代理:

不使用任何代理,勾选后直连网络

然后重启微信web开发者工具后,该问题就消失了。

转载请注明:在路上 » 【已解决】微信小程序出错:index.js:1 Uncaught ReferenceError: define is not defined(anonymous function)

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
67 queries in 0.107 seconds, using 18.72MB memory