应该是版本代代码不同的问题,修改一下版本 "@tensorflow-models/posenet": "^2.1.3", "@tensorflow/tfjs-converter": "^1.2.2", "@tensorflow/tfjs-core": "^1.2.2", "fetch-wechat": "^0.0.3", "regenerator-runtime": "^0.13.2" 删除node_modules 重新install 并且构建一下
Cannot read property 'setWebGLContext' of undefine安装TensorFlow后运行,出现以下错误提示,请问是哪里问题? VM127:1 thirdScriptError Cannot read property 'setWebGLContext' of undefined;at App lifeCycleMethod onLaunch function TypeError: Cannot read property 'setWebGLContext' of undefined at t (http://127.0.0.1:56710/appservice/__onlineplugin__/wx6afed118d9e81df9/0.0.6/appservice.js:1089:384) at Object.exports.setupWechatPlatform (http://127.0.0.1:56710/appservice/__onlineplugin__/wx6afed118d9e81df9/0.0.6/appservice.js:1089:1537) at Object.exports.configPlugin (http://127.0.0.1:56710/appservice/__onlineplugin__/wx6afed118d9e81df9/0.0.6/appservice.js:1074:148)
2020-06-19