没有导出的成员HttpClientModule,BrowserAnimationsModule

Jes*_*per 5 angular

我刚刚将angular更新到5.1.2版本。现在,我从标题中提到的模块导入中得到了此错误:

Module '"c:/pdws-view-v2/node_modules/@angular/platform-browser/animations"' has 
no exported member 'BrowserAnimationsModule'.
Run Code Online (Sandbox Code Playgroud)

我的应用程序似乎运行良好,例如http调用成功。我想知道问题出在哪里(如果有的话)。

这里是进口:

import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
Run Code Online (Sandbox Code Playgroud)

谢谢。

Ell*_*iot 2

正如上面评论中提到的,重新启动编辑器。

刚刚升级 Angular 7 -> 8,并因多次@Angular导入而遇到许多类似的错误。即使存在这些问题,应用程序仍然可以构建并运行。