【发布时间】:2018-03-26 14:08:26
【问题描述】:
我正在尝试使用 Ionic 2 运行 ionic cordova build android,但我收到了一些关于停止构建的错误的编号。不知道为什么,但所有错误都是相似的。
例如下面的result 变量数据来自 API 调用,所以我不知道为什么它会阻止构建运行?
构建错误
[00:45:45] typescript: C:/xampp/htdocs/apps/test/src/pages/red/red.ts, line: 72
Property 'game' does not exist on type '{}'.
L71: this.gamesProvider.getCurrentGame(user).then((result) => {
L72: this.game = result.game;
L73: this.hintsAll = result.we;
[00:45:45] typescript: typescript: C:/xampp/htdocs/apps/test/src/pages/red/red.ts, line: 133
Property 'status' does not exist on type 'LivegamePage'.
L132: // switch icons
L133: this.status = false;
【问题讨论】:
标签: javascript angular ionic-framework ionic2 ionic3