Ionic应用在安卓设备上无法运行

3
我使用电脑浏览器完全创建了我的应用,但当我在设备上进行Android构建和部署时,它卡在一片空白的白屏。所以我决定将文件托管到 /www 目录中进行调试。我收到错误 0 619759 错误 Uncaught TypeError:无法读取未定义的属性“6”,http://10.12.1.205:8100/build/js/Reflect.js,行:894。20029 错误 Uncaught reflect-metadata shim is required when using class decorators,http://10.12.1.205:8100/build/js/app.bundle.js,行:36793。请帮帮忙。Ionic信息: Cordova CLI: 6.3.0,Gulp版本: CLI version 3.9.1,Gulp local: Local version 3.9.1,Ionic Framework版本: 2.0.0-beta.11,Ionic CLI版本: 2.0.0-beta.37,Ionic App Lib版本: 2.0.0-beta.20,操作系统: Windows 7,Node版本: v4.4.7。设备信息:ADV 4.2.2,Kernel 3.4.5。

你的问题在你的JS文件中。你调用了类似undefined.6的东西。检查你的代码。 - gianlucatursi
需要注意的是该应用程序在Google Chrome浏览器上运行良好,但在其他浏览器上可能无法正常运行。 - user2955481
请使用这个指南查看错误日志并找到解决方案。 - nahoang
仍然不能帮助我,Hoang。 - user2955481
1个回答

0

尝试使用

//tsconfig.json

target: 'es5'

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接