首页 > 解决方案 > 安装@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'.

标签: angulartypescriptangular-flex-layout

解决方案


推荐阅读