没有导出成员 'view'
No exported member 'view'
我正在关注 Angular2 5 分钟示例,打字稿在以下位置抛出错误:
import {Component,View,bootstrap} from 'angular2/angular2';
给出错误:
Module '"angular2/angular2"' has no exported member 'view'.
我看到 上有一个相关问题,但它是针对 alpha 23/26 的,我们目前是 31。
有没有人运行参与其中或有解决方案?
Interesting now that this works. The only thing I did was update git on my pc.
如果您在后台下载新文件(如 angular 定义),则需要重新启动 IDE。
FWIW atom-typescript 为此提供了同步选项:https://github.com/TypeStrong/atom-typescript#sync
我正在关注 Angular2 5 分钟示例,打字稿在以下位置抛出错误:
import {Component,View,bootstrap} from 'angular2/angular2';
给出错误:
Module '"angular2/angular2"' has no exported member 'view'.
我看到
有没有人运行参与其中或有解决方案?
Interesting now that this works. The only thing I did was update git on my pc.
如果您在后台下载新文件(如 angular 定义),则需要重新启动 IDE。
FWIW atom-typescript 为此提供了同步选项:https://github.com/TypeStrong/atom-typescript#sync