I am just starting Angular 2 / Typescript using the 5 Minute Quickstart found here. I\'ve run into what looks to be a common problem, but maybe a bit different. I am encounter
The NgModule class is exported from the node_modules/@angular/core/src/metadata.d.ts file through the node_modules/@angular/core/index.d.ts one.
I wonder if you specify correctly the moduleResolution property in your tsconfig.json file:
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"moduleResolution": "node", // <-----
"sourceMap": true,
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"removeComments": false,
"noImplicitAny": false
}
}