angular - 安装@angular/flex-layout 包问题后启动服务器时出错
问题描述
您好,我想在我的应用程序上使用 angular-flax,并在运行推荐时
npm install @angular/flex-layout
它的安装正确但是当我启动服务器 ng serve 我发现这个错误我使用 angular 7
ERROR in node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,19): error TS2305: Module '"D:/TFS/Ta3alomLive/WebApp/node_modules/@angular/common/common"' has no exported member 'ɵNgClassImpl'. node_modules/@angular/flex-layout/extended/typings/class/class.d.ts(9,33): error TS2305: Module '"D:/TFS/Ta3alomLive/WebApp/node_modules/@angular/common/common"' has no exported member 'ɵNgClassR2Impl'. node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,19): error TS2305: Module '"D:/TFS/Ta3alomLive/WebApp/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleImpl'. node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(9,33): error TS2305: Module '"D:/TFS/Ta3alomLive/WebApp/node_modules/@angular/common/common"' has no exported member 'ɵNgStyleR2Impl'. node_modules/@angular/flex-layout/flex/typings/flex-offset/flex-offset.d.ts(9,32): error TS2307: Cannot find module '@angular/cdk/bidi'. node_modules/@angular/flex-layout/flex/typings/layout-gap/layout-gap.d.ts(9,32): error TS2307: Cannot find module '@angular/cdk/bidi'.
解决方案
推荐阅读
- package - 在防火墙后面的 Windows 中为 Julia 安装软件包时遇到问题(尽管我可以在相同条件下使用 R 安装软件包)
- html - 我怎样才能在帖子列表中只显示第三张图片?
- c++ - 理解 void func(A())
- python - 通过从 Pandas 数据框中获取索引和值来创建矩阵的性能
- java - 如何从 java 应用程序运行 windows 命令提示符?
- kubernetes - 如何将 PodSecurityPolicy 应用于非 kube-system 命名空间资源?
- java - Spring xml主bean
- javascript - 如何将变量从 node.js 函数传递到 graphql-tag?
- arrays - 将数组元素的基数从八进制更改为十进制(在远程运行的本地 bash 脚本中)
- java - 如何将自定义 restTemplate istance 添加到 RestTemplateEurekaHttpClient