Webpack 网页包错误:错误TS2305:模块'&引用;angular2/http“';没有导出的成员';HTTP#u提供者';

Webpack 网页包错误:错误TS2305:模块'&引用;angular2/http“';没有导出的成员';HTTP#u提供者';,webpack,angular,Webpack,Angular,我开始玩Angular 2和Webpack,但不断出现错误 ERROR in C:\msweb\ng2Boilerplate\src\comps\myip\Myip.ts (8,9): error TS2305: Module '"angular2/http"' has no exported member 'HTTP_PROVIDERS'. ERROR in C:\msweb\ng2Boilerplate\src\comps\digg\DiggLoader.ts (3,9): err

我开始玩Angular 2和Webpack,但不断出现错误

    ERROR in C:\msweb\ng2Boilerplate\src\comps\myip\Myip.ts
(8,9): error TS2305: Module '"angular2/http"' has no exported member 'HTTP_PROVIDERS'.

ERROR in C:\msweb\ng2Boilerplate\src\comps\digg\DiggLoader.ts
(3,9): error TS2305: Module '"angular2/http"' has no exported member 'HTTP_PROVIDERS'.

ERROR in C:\msweb\ng2Boilerplate\src\comps\app2\App2.ts
(19,9): error TS2305: Module '"angular2/http"' has no exported member 'HTTP_PROVIDERS'.

ERROR in C:\msweb\ng2Boilerplate\src\comps\app1\App1.ts
(3,9): error TS2305: Module '"angular2/http"' has no exported member 'HTTP_PROVIDERS'.
webpack: bundle is now VALID.
例如,我的文件也是标准的,如:

    ///<reference path="../../../typings/app.d.ts" />

import {Component} from "angular2/core";
import {Consts} from "../../Conts";
import {Observable} from 'rxjs/Observable';
import 'rxjs/add/operator/do';
import {AsyncSubject} from "rxjs/subject/AsyncSubject";
import {HTTP_PROVIDERS, Http} from 'angular2/http';
//import {JSONP_PROVIDERS, Jsonp} from 'angular2/http';

interface IIpAddress {
    ip: string;
}

@Component({
    selector: 'MyIp',
我的网页配置很普通。。。在最新的ng2中,这是不是一个不导出标题的错误?谷歌似乎不知道

德克萨斯州


Sean

Plz添加引发此错误的文件的详细信息您是否可以发布您如何引导应用程序,以及您在
index.html
中添加的脚本以下是出现此问题的项目:
bootstrap(App, [ROUTER_PROVIDERS,
provide(CommBroker, {useClass: CommBroker}),
provide(Consts, {useClass: Consts}),
provide(LocationStrategy, {useClass: HashLocationStrategy})]);