ERROR in node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(72,67)
6.0.0-beta.17 worked normally, 6.0.0-beta.18 has next:
ERROR in node_modules/@angular/flex-layout/extended/typings/style/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.
Workaround for today: @angular/flexLayout - rollback to 6.0.0-beta.16 rxjs - rollback to 6.2.2
Use typescript version 2.9.1 and up to resolve edit: 2.9.2 also works, be sure not to go 3.0, or it will interrupt the angular-cli
I've been having the same issue since flexLayout 6.0.0-beta.18 was released - upgrading typescript from 2.7.2 to 2.9.2 resolved it for me.
I was facing the same issue and I tried these two options and they work!
- @Doom100500 rollback to flexlayout beta 17 did the job
- @ranst91 @nripoli4810 updating typescript to version 2.9.2 solved the problem 💯
Just checked with the brand new project created with angular-cli ver 6.1.5
- ng new... gives typescript ~2.7.2 in package.json
- replaced typescript version in package.json to ^2.9.2
- install and setup angular/flex-layout
- build failed, cannot find modules of @angular/cdk
- npm i --save @angulal/cdk
- build working...
Seems that this is a bug in angular cli...
Duplicate of #827
How should I rollback rxjs to 6.2.2? I've got 6.3.2. npm install -g [email protected] doesn't change it. Can't find the appropriate command to uninstall and reinstall it. Also one more question, should I do it globally, locally or both ways?
I just ran these commands and it solved.
- ng update @angular/cli
- ng update @angular/core
- update @angular/flex-layout version to "^6.0.0-beta.18"
- npm install
- npm run build:ssr
I did point 1 to point 4 and it solves the issue !!! Thanks Yaseen
Thanks @Yaseen-Nadaf .. Solution worked for me 👍
Thank you, Yaseen-Nadaf. This worked for me.
Thank very very much @Yaseen-Nadaf. It worked!
worked for me too! thanks @Yaseen-Nadaf !
is this won't affect my project in the future?
is this won't affect my project in the future?
Actually as I am unaware of which version you are using currently, I would say that if your angular version is less than 6 then it may affect a little because of some breaking changes. You have to take care of it or code according to new changes.
did as Yaseen-Nadaf:
- ng update @angular/cli
- ng update @angular/core
- ng update @angular/flex-layout version to "^6.0.0-beta.18"
- npm install
it works for me. Thanks,
@industrioustudy what version of angular?
Did not work for
Use typescript version 2.9.1 and up to resolve edit: 2.9.2 also works, be sure not to go 3.0, or it will interrupt the angular-cli
This did the trick for me. Updating typescript to 2.9.2 for flex-layout ^6.0.0-beta.18.
"@angular/cdk": "^6.4.7",
"@angular/common": "^6.1.9",
"@angular/compiler": "^6.1.9",
"@angular/core": "^6.1.9",
"@angular/flex-layout": "^6.0.0-beta.18",
@industrioustudy Thanks Man its work for me Too
I faced the same problem. I Installed this particular typescript version.
0n your local project = npm install [email protected] Globally= npm install -g [email protected] Check version = tsc -v