整个demo就显示一个图片,微信开发工具显示正常,真机发布失败
微信开发工具版本:1.02.1910120
Wechat Lib:2.9.4, 2019.11.27 14:51:04
真机环境:微信 7.05,ios系统:10.2
微信开发者工具编译,运行正常,真机器测试报错
gameThirdScriptError
SyntaxError
at line:6,column:83273,SyntaxError: Cannot declare a let variable twice: 't'. Stack: (native code)
at evaluateScriptFile (WAGame.js:1:83273)
at value (WAGame.js:1:406593)
at value (WAGame.js:1:405741)
at (WAGame.js:1:411737)
at (WAGame.js:1:411740)
at s (WAGame.js:1:403825)
at (WAGame.js:1:411633)
at h (WAGame.js:1:2955)
at g (WAGame.js:1:3008)
at v (WAGame.js:1:411484)
at (WAGame.js:1:1133309)
at global code (WAGame.js:1:1133314)
请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。
检查一下是否有ES6语法?