0

I got TypeError:

cannot read property 'compilerOptions' of undefined

Here is my compilerOptions code:

{
  "compilerOptions": {
    "target": "ES5",
    "module": "commonjs",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "sourceMap": true,
    "noEmitHelpers": true,

  },
  "compileOnSave": false,
  "buildOnSave": false,
  "awesomeTypescriptLoaderOptions": {
    "forkChecker": true,
    "useWebpackText": true
  }
}

Can anybody tell me why this is happening?

2
  • What have you done till now? Please share your code Commented Dec 23, 2016 at 6:38
  • thanks for supporting Mikkel..now its working The error is in JSON format i have done this. Commented Dec 23, 2016 at 6:53

1 Answer 1

3

First, your JSON format is wrong in your application's .tsconfig.json. There is a , in 8th line.

"noEmitHelpers": true, // <-- trailing comma in tscofing breaks ts compile
Sign up to request clarification or add additional context in comments.

1 Comment

But from where you are calling this data? Please add that code

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.