Javascript Angular项目构建成功,但出现以下错误

Javascript Angular项目构建成功,但出现以下错误,javascript,angular,typescript,Javascript,Angular,Typescript,它在项目运行和生成后向我显示这些错误 style.d.ts(72,67): error TS1144: '{' or ';' expected. node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(74,5): error TS1128: Declaration or statement expected. node_modules/@angular/flex-layout/extended/typings/st

它在项目运行和生成后向我显示这些错误

style.d.ts(72,67): error TS1144: '{' or ';' expected.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(74,5): error TS1128: Declaration or statement expected.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(74,33): error TS1005: ';' expected.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(74,39): error TS1109: Expression expected.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(79,5): error TS1128: Declaration or statement expected.
node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(80,1): error TS1128: Declaration or statement expected.

有谁能指导我如何解决这个问题吗?

在终端中执行:tsc-v

现在,最新的版本是:3.0.3


如果没有,您的typescript版本的引用有问题。

您需要重新安装flax layout

npm uninstall @angular/flex-layout --save


@Vatsal Dashani尝试将typescript更新为最新版本version@Md.KhirulIslamOmi类型脚本已更新
 npm install @angular/flex-layout@6.0.0.15-beta --save