花了几个小时经历了大量的npm安装,只是为了找到一个角度和材料兼容的解决方案,我想我可能已经接近最终能够运行我的应用程序...
但是,使用'ng serve'时,我收到以下错误 . 这个Tsconfig文件暂时没有改变,所以我不确定问题是什么 .
错误TS5014:无法在位置329的JSON中解析文件'mylocation / tsconfig.json':意外的令牌] .
{
"compileOnSave": false,
"compilerOptions": {
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"moduleResolution": "node",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"allowJs": true,
"target": "es5",
"types": [
"node",
"hammerjs",
],
"typeRoots": [
"../node_modules/@types"
],
"lib": [
"es2017",
"dom"
]
},
"files": [
"typings/index.d.ts"
]
}
试图弄清楚这一点的任何帮助都会很棒 . 我想我已经有点失明 .
1 回答
"hammerjs",
你有一个额外的逗号