我刚刚将 angular 更新到版本 5.1.2。现在我从标题中提到的模块的导入中得到这个错误:
Module '"c:/pdws-view-v2/node_modules/@angular/platform-browser/animations"' has
no exported member 'BrowserAnimationsModule'.
不过,我的应用程序似乎运行良好,例如 http 调用成功。我想知道问题是什么(如果有的话)。
这里是导入:
import { HttpClientModule } from '@angular/common/http';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
谢谢。
最佳答案
如上评论所述,重新启动您的编辑器。
刚刚升级了 Angular 7 -> 8 并且在多个 @Angular
导入中遇到了许多类似的错误。即使存在这些问题,应用程序仍然可以构建和运行。
关于angular - 没有导出成员 HttpClientModule、BrowserAnimationsModule,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47998018/