【小程序】微信小程序这个报错如何解决?

【小程序】微信小程序这个报错如何解决?

图片描述

可能是图片上传被压缩了

左边的报错为
You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.

右边的报错为
Uncaught SyntaxError: Unexpected token <
util.js:1 Uncaught ReferenceError: define is not defined
app.js:1 Uncaught ReferenceError: define is not defined
index.js:1 Uncaught ReferenceError: define is not defined
appservice:17 Thu Apr 27 2017 10:30:06 GMT+0800 (CST) page 编译错误
appservice:18 pages/index/index 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:18
logs.js:1 Uncaught ReferenceError: define is not defined
appservice:23 Thu Apr 27 2017 10:30:06 GMT+0800 (CST) page 编译错误
appservice:24 pages/logs/logs 出现脚本错误或者未正确调用 Page()(anonymous function) @ appservice:24
VM93:1 Thu Apr 27 2017 10:30:09 GMT+0800 (CST) 渲染层错误
VM93:2 Uncaught SyntaxError: Unexpected token <(anonymous function) @ VM93:2
VM95:1 Thu Apr 27 2017 10:30:09 GMT+0800 (CST) 渲染层错误
VM95:2 Refused to load the script 'https://assets-cdn.github.com...' because it violates the following Content Security Policy directive: "script-src 'self' *.qq.com 'unsafe-inline' 'unsafe-eval'".
(anonymous function) @ VM95:2
VM96:1 Thu Apr 27 2017 10:30:09 GMT+0800 (CST) 渲染层错误
VM96:2 Refused to load the script 'https://assets-cdn.github.com...' because it violates the following Content Security Policy directive: "script-src 'self' *.qq.com 'unsafe-inline' 'unsafe-eval'".

这里说明一下,我只是用小程序的开发工具新建一个新项目,连代码都还没有写,就报个这样的错。

回答

经2个小时的折腾,应该是开发工具搞得乌龙,去下载最新的开发工具安装就没有这个报错了

define 未定义?哪里来的define?查一下js里哪有语法错误先。

编译 一下试试,我编译一下 就解决了

以上是 【小程序】微信小程序这个报错如何解决? 的全部内容, 来源链接: utcz.com/a/80409.html

回到顶部