"Module angular2/src/core/compiler/interfaces not declared as a dependency" 使用 angular2.api.ts 时
"Module angular2/src/core/compiler/interfaces not declared as a dependency" when using angular2.api.ts
我正在使用 TypeScript 为 Angular2.alpha27 构建一个应用程序。
试图通过使用 angular2.api.ts 从node_modules/angular2/ts。一切都编译,但我在浏览器中收到错误消息“模块angular2/src/core/compiler/interfaces未声明为依赖项”。
另一方面,当我尝试 es6 的定义或只是 node_modules 的 angular2 的主目录时,我遇到了很多编译错误。
这样做的主要动机是 angular2/forms,最初不受从 DefinitlyTyped 或 angular2-seed 项目获得的定义的支持。
我认为这很快就会得到解决,但现在我已经找到了以下类型文件,其中除了来自 DefinitelyTyped 的 angular2.d.ts 文件之外还包含我需要的所有内容:https://github.com/rolandjitsu/ng2-play/blob/master/src/_typings/custom.d.ts
我正在使用 TypeScript 为 Angular2.alpha27 构建一个应用程序。
试图通过使用 angular2.api.ts 从node_modules/angular2/ts。一切都编译,但我在浏览器中收到错误消息“模块angular2/src/core/compiler/interfaces未声明为依赖项”。
另一方面,当我尝试 es6 的定义或只是 node_modules 的 angular2 的主目录时,我遇到了很多编译错误。
这样做的主要动机是 angular2/forms,最初不受从 DefinitlyTyped 或 angular2-seed 项目获得的定义的支持。
我认为这很快就会得到解决,但现在我已经找到了以下类型文件,其中除了来自 DefinitelyTyped 的 angular2.d.ts 文件之外还包含我需要的所有内容:https://github.com/rolandjitsu/ng2-play/blob/master/src/_typings/custom.d.ts