Cannot find external module 'angular2/angular2' - Angular2 w/ Typescript

前端 未结 10 1422
臣服心动
臣服心动 2020-12-01 21:20

I am going through the step by step tutorial on angular.io (Angular 2). I am using typescript. I get the following error when trying to compile:

Cannot find ex

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-01 21:53

    Why is this error occuring?

    make sure you have this file : https://github.com/borisyankov/DefinitelyTyped/blob/master/angular2/angular2.d.ts included in your project (recommend using tsconfig.json : https://github.com/TypeStrong/atom-typescript/blob/master/docs/tsconfig.md)

提交回复
热议问题