Angular2 TypeError:无法读取属性';编译器选项';未定义的
我得到了打字错误: 无法读取未定义的属性“compilerOptions” 以下是我的编译器选项代码:Angular2 TypeError:无法读取属性';编译器选项';未定义的,angular,typescript,Angular,Typescript,我得到了打字错误: 无法读取未定义的属性“compilerOptions” 以下是我的编译器选项代码: { "compilerOptions": { "target": "ES5", "module": "commonjs", "emitDecoratorMetadata": true, "experimentalDecorators": true, "sourceMap": true, "noEmitHelpers": true, },
{
"compilerOptions": {
"target": "ES5",
"module": "commonjs",
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"sourceMap": true,
"noEmitHelpers": true,
},
"compileOnSave": false,
"buildOnSave": false,
"awesomeTypescriptLoaderOptions": {
"forkChecker": true,
"useWebpackText": true
}
}
有人能告诉我为什么会发生这种情况吗?首先,您的JSON格式是错误的。第八行有一个
,
"noEmitHelpers": true, should be "noEmitHelpers": true
首先,您的JSON格式是错误的。第八行有一个
,
"noEmitHelpers": true, should be "noEmitHelpers": true
到现在为止你做了什么?请分享你的代码谢谢你支持Mikkel.现在它工作了错误是JSON格式的我已经这样做了。到目前为止你做了什么?请分享你的代码谢谢你支持Mikkel.现在它工作了错误是JSON格式的我已经这样做了。但是你从哪里调用这些数据?请添加该代码(如果对您有帮助,请不要忘记将其标记为答案;)但是从哪里调用这些数据呢?请添加该代码(如果对您有帮助,请不要忘记将其标记为答案;)