[]今天打开微信工具出现错误Cannot read property 'USER_DATA_PATH' of undefined
Wechat Lib:2.0.1, 2018.4.14 12:32:36
code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ}
WAGame.js:3 gameThirdScriptError
Cannot read property 'USER_DATA_PATH' of undefined
TypeError: Cannot read property 'USER_DATA_PATH' of undefined
at Function.MiniFileMgr.setNativeFileDir (http://127.0.0.1:37684/game/code.js:21639:46)
at Function.MiniAdpter.init (http://127.0.0.1:37684/game/code.js:21174:16)
at Object.init (http://127.0.0.1:37684/game/code.js:106755:29)
at Object.init (http://127.0.0.1:37684/game/code.js:131022:24)
at http://127.0.0.1:37684/game/code.js:131545:21
at require (http://127.0.0.1:37684/game/__ ... :13718)
at http://127.0.0.1:37684/game/__ ... 13432
at http://127.0.0.1:37684/game/game.js:4:1
at require (http://127.0.0.1:37684/game/__ ... :13718)
at http://127.0.0.1:37684/game/gamePage.html:152:5
console.error
errorReport @ WAGame.js:3
thirdErrorReport @ WAGame.js:3
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:9
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
window.onerror
VM123:3 Thu May 24 2018 11:28:22 GMT+0800 (中国标准时间) JS 文件编译
VM125:3 Thu May 24 2018 11:28:30 GMT+0800 (中国标准时间) JS 文件编译
VM125:4 以下 JS 文件过大(超过 500K),已跳过 ES6 转 ES5 和压缩的处理:
(anonymous) @ VM125:4
(anonymous) @ VM125:7
VM125:5 libs/min/laya.d3.min.js
code.js:107 Warning!,this class[MiniAdpter] already exist: {init: ƒ}
WAGame.js:3 gameThirdScriptError
Cannot read property 'USER_DATA_PATH' of undefined
TypeError: Cannot read property 'USER_DATA_PATH' of undefined
at Function.MiniFileMgr.setNativeFileDir (http://127.0.0.1:37684/game/code.js:21639:46)
at Function.MiniAdpter.init (http://127.0.0.1:37684/game/code.js:21174:16)
at Object.init (http://127.0.0.1:37684/game/code.js:106755:29)
at Object.init (http://127.0.0.1:37684/game/code.js:131022:24)
at http://127.0.0.1:37684/game/code.js:131545:21
at require (http://127.0.0.1:37684/game/__ ... :13718)
at http://127.0.0.1:37684/game/__ ... 13432
at http://127.0.0.1:37684/game/game.js:4:1
at require (http://127.0.0.1:37684/game/__ ... :13718)
at http://127.0.0.1:37684/game/gamePage.html:152:5
console.error
errorReport @ WAGame.js:3
thirdErrorReport @ WAGame.js:3
(anonymous) @ WAGame.js:3
(anonymous) @ WAGame.js:9
(anonymous) @ WAGame.js:4
a @ gamePage.html:1
window.onerror
VM123:3 Thu May 24 2018 11:28:22 GMT+0800 (中国标准时间) JS 文件编译
VM125:3 Thu May 24 2018 11:28:30 GMT+0800 (中国标准时间) JS 文件编译
VM125:4 以下 JS 文件过大(超过 500K),已跳过 ES6 转 ES5 和压缩的处理:
(anonymous) @ VM125:4
(anonymous) @ VM125:7
VM125:5 libs/min/laya.d3.min.js
没有找到相关结果
已邀请:
要回复问题请先登录
4 个回复
Aar0n
赞同来自:
多描述一下,自己开发过程中的具体情况。。但从报错来看条件过于单一,如果没有相同经验,很难判断问题所在的。
131*****785
赞同来自:
我这样打印:
console.log("aaaaaaaaa="+wx.env);
//初始化微信小游戏
Laya.MiniAdpter.init();
控制台输出 aaaaaaaaa=undefined
131*****785
赞同来自:
131*****785
赞同来自: