问题
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