I\'ve been using the Heroes tutorial in the Angular 2 docs to experiment. However, I\'ve come to a point that I don\'t understand what\'s happening with this error:
Try with these compilerOptions in "tsconfig.json". It worked for me (Version 2.0.0-rc.1 of angular).
"compilerOptions": {
"target": "es6",
"module": "commonjs",
"declaration": false,
"noImplicitAny": false,
"removeComments": true,
"noLib": false,
"emitDecoratorMetadata": true,
"experimentalDecorators": true },
I had the same problem with injectables (same error) and the fix did the trick for services but not for http. I modified my options based on a tutorial from ng-book2 and it finally worked.