1

I am new in Angular2. Trying to install package json component using npm install command. After installation, I get following error.

enter image description here

Because of this error, I am unable to compile my application. It gives more than 100 compilation errors. The errors like below

Error 171 '(' expected. project directory\node_modules\rxjs\operator\concat.d.ts

Error 289 Experimental support for decorators is a feature that is subject to change in a future release. Set the 'experimentalDecorators' project directory agGridNg2.ngfactory.ts

3
  • Can you add your package json content here? at least dependencies, devDependencies and peerDependencies Commented Jan 30, 2017 at 12:46
  • "dependencies": { "@angular/common": "~2.1.0", "@angular/compiler": "~2.1.0", "@angular/core": "~2.1.0", "angular2-text-mask": "2.1.0", "bootstrap": "^3.3.7", "core-js": "^2.4.1", "pdfmake": "^0.1.24", "reflect-metadata": "^0.1.8", "rxjs": "5.0.0-beta.12", "systemjs": "0.19.39", "zone.js": "^0.6.25" }, Commented Jan 31, 2017 at 7:14
  • I am adding some dependencies only due to max length Commented Jan 31, 2017 at 7:15

1 Answer 1

1

Inside your tsconfig.json set the experimentalDecorators to true:

{
  "compilerOptions": {
    ...
    "experimentalDecorators": true,
  }
}
Sign up to request clarification or add additional context in comments.

Comments

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.