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

查看:564
本文介绍了微信小程序这个报错如何解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

图片描述

可能是图片上传被压缩了

左边的报错为
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个小时的折腾,应该是开发工具搞得乌龙,去下载最新的开发工具安装就没有这个报错了

这篇关于微信小程序这个报错如何解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆