【发布时间】:2017-12-31 03:48:12
【问题描述】:
当我在浏览器 (ionic serve -l) 中运行我的应用程序时,一切都很好,即使在大多数 android 设备上也没有问题,但我发现一些不会启动应用程序并在设备上方出现错误时死机。我在 android 5.0.2 上运行时遇到问题。我什至尝试在 tsconfig.json 中关闭严格模式,但没有成功。是否有人遇到过类似的问题,或者有什么方法可以找出问题的确切位置?
tsconfig.json
{
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"declaration": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"diagnostics": true,
"allowUnreachableCode": true,
"noImplicitUseStrict": true,
"lib": [
"dom",
"es2015"
],
"module": "es2015",
"moduleResolution": "node",
"sourceMap": true,
"target": "es5"
},
"include": [
"src/**/*.ts"
],
"exclude": [
"node_modules"
],
"compileOnSave": false,
"atom": {
"rewriteTsconfig": false
}
}
【问题讨论】:
-
这不是一个有效的 json 结构
-
没错,只是忘记在这篇文章中添加“{”
标签: android json typescript ionic2