在为 android 构建离子应用程序时无法读取未定义的 属性 'map'
Cannot read property 'map' of undefined, while building ionic app for android
我在 运行 我的 android 离子应用程序时遇到错误,我无法解决问题。
命令:
$ sudo ionic cordova run android --prod --release --verbose
输出:
...
chunk {113} 113-es5.097d871d0097f5dc5442.js () 17.5 kB [rendered]
chunk {114} 114-es2015.43745f337fb2fbc1341f.js () 4.12 kB [rendered]
chunk {114} 114-es5.43745f337fb2fbc1341f.js () 5.24 kB [rendered]
chunk {115} 115-es2015.8a0242b33fe8c077830a.js () 27.3 kB [rendered]
chunk {115} 115-es5.8a0242b33fe8c077830a.js () 27.3 kB [rendered]
chunk {13} styles.167082b7f296a73bbe8d.css (styles) 70.8 kB [initial] [rendered]
chunk {cordova} cordova.22d0b106f4dfd80eb9b7.js (cordova) 21 kB [entry] [rendered]
Date: 2019-10-08T16:21:29.118Z - Hash: 5c54472b0079875ceb26 - Time: 52527ms
Cannot read property 'map' of undefined
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build:production --platform=android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
错误只出现在产品发布中,我在整个项目中找不到“.map()”。有人知道这可能来自哪里吗?
这个错误通常发生在没有 () 的情况下存在的对象实例化。
因此,请在您的代码库中搜索此类实例。
删除平台,更新模块并再次添加平台已修复我的错误。
我在 运行 我的 android 离子应用程序时遇到错误,我无法解决问题。
命令:
$ sudo ionic cordova run android --prod --release --verbose
输出:
...
chunk {113} 113-es5.097d871d0097f5dc5442.js () 17.5 kB [rendered]
chunk {114} 114-es2015.43745f337fb2fbc1341f.js () 4.12 kB [rendered]
chunk {114} 114-es5.43745f337fb2fbc1341f.js () 5.24 kB [rendered]
chunk {115} 115-es2015.8a0242b33fe8c077830a.js () 27.3 kB [rendered]
chunk {115} 115-es5.8a0242b33fe8c077830a.js () 27.3 kB [rendered]
chunk {13} styles.167082b7f296a73bbe8d.css (styles) 70.8 kB [initial] [rendered]
chunk {cordova} cordova.22d0b106f4dfd80eb9b7.js (cordova) 21 kB [entry] [rendered]
Date: 2019-10-08T16:21:29.118Z - Hash: 5c54472b0079875ceb26 - Time: 52527ms
Cannot read property 'map' of undefined
[ERROR] An error occurred while running subprocess ng.
ng run app:ionic-cordova-build:production --platform=android exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
错误只出现在产品发布中,我在整个项目中找不到“.map()”。有人知道这可能来自哪里吗?
这个错误通常发生在没有 () 的情况下存在的对象实例化。 因此,请在您的代码库中搜索此类实例。
删除平台,更新模块并再次添加平台已修复我的错误。