Angular project Build successfully but giving these errors

牧云@^-^@ 提交于 2021-02-08 17:00:21

问题


It shows me these errors after the project is run and build

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.

Can anyone guide me how can I solve this problem?


回答1:


you need to install flax-layout again

npm uninstall @angular/flex-layout --save

than

 npm install @angular/flex-layout@6.0.0.15-beta --save 



回答2:


execute in the terminal: tsc -v

At this time, the latest verstion would it be: 3.0.3

If not, you have a problem reference with your typescript version.



来源:https://stackoverflow.com/questions/52779474/angular-project-build-successfully-but-giving-these-errors

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!