Now that I have upgraded my application to Angular2 v2.0.0-rc.1, I again see TypeScript compiling error messages / warnings when my application is inserted into webpack . Messages appear for any of the packages @angularthat I reference from TypeScript source files, such as:
ERROR in ./src/app/app.ts
(1,34): error TS2307: Cannot find module '@angular/core'.
ERROR in ./src/app/app.ts
(3,76): error TS2307: Cannot find module '@angular/common'.
ERROR in ./src/app/app.ts
(4,30): error TS2307: Cannot find module '@angular/http'.
In earlier beta versions of Angular2, I ran into similar message problems with classes like Promiseand Mapby including something like this at the top of my file app.ts.
d.ts @angular Angular2, , ? , typings - :
MFO-Mac:angular2-oauth2 mfo$ typings search '@angular'
No results found for search
TypeScript tsconfig.json, ES6. ES5, @angular, ES6, Promise, Set Map. ES6:
{
"version": "1.6.2",
"compilerOptions": {
"emitDecoratorMetadata": true,
"experimentalDecorators": true,
"target": "es6",
"module": "commonjs",
"removeComments": true,
"sourceMap": true
},
"exclude": [
"node_modules",
"bower_components",
"bootstrap"
],
"files": [],
"definitions": [
]
}
, node_modules/@angular, definitions tsconfig.json, , typedef TypeScript.
, .