flex-layout icon indicating copy to clipboard operation
flex-layout copied to clipboard

ERROR in node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(72,67)

Open mayras opened this issue 8 years ago • 22 comments

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.

mayras avatar Sep 02 '18 05:09 mayras

Workaround for today: @angular/flexLayout - rollback to 6.0.0-beta.16 rxjs - rollback to 6.2.2

pereslava avatar Sep 02 '18 08:09 pereslava

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

ranst91 avatar Sep 02 '18 16:09 ranst91

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.

nripoli4810 avatar Sep 02 '18 18:09 nripoli4810

I was facing the same issue and I tried these two options and they work!

  1. @Doom100500 rollback to flexlayout beta 17 did the job
  2. @ranst91 @nripoli4810 updating typescript to version 2.9.2 solved the problem 💯

AnthonyNahas avatar Sep 02 '18 21:09 AnthonyNahas

Just checked with the brand new project created with angular-cli ver 6.1.5

  1. ng new... gives typescript ~2.7.2 in package.json
  2. replaced typescript version in package.json to ^2.9.2
  3. install and setup angular/flex-layout
  4. build failed, cannot find modules of @angular/cdk
  5. npm i --save @angulal/cdk
  6. build working...

Seems that this is a bug in angular cli...

pereslava avatar Sep 03 '18 09:09 pereslava

Duplicate of #827

CaerusKaru avatar Sep 04 '18 04:09 CaerusKaru

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?

mariamtsartsidze avatar Sep 06 '18 19:09 mariamtsartsidze

I just ran these commands and it solved.

  1. ng update @angular/cli
  2. ng update @angular/core
  3. update @angular/flex-layout version to "^6.0.0-beta.18"
  4. npm install
  5. npm run build:ssr

ghost avatar Sep 07 '18 11:09 ghost

I did point 1 to point 4 and it solves the issue !!! Thanks Yaseen

Eholl80 avatar Sep 10 '18 09:09 Eholl80

Thanks @Yaseen-Nadaf .. Solution worked for me 👍

rahul230691 avatar Sep 12 '18 12:09 rahul230691

Thank you, Yaseen-Nadaf. This worked for me.

k0nstantink avatar Sep 13 '18 10:09 k0nstantink

Thank very very much @Yaseen-Nadaf. It worked!

tjbernard avatar Sep 14 '18 08:09 tjbernard

worked for me too! thanks @Yaseen-Nadaf !

alo avatar Sep 14 '18 17:09 alo

is this won't affect my project in the future?

SlimAidar avatar Sep 18 '18 22:09 SlimAidar

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.

ghost avatar Sep 19 '18 06:09 ghost

did as Yaseen-Nadaf:

  1. ng update @angular/cli
  2. ng update @angular/core
  3. ng update @angular/flex-layout version to "^6.0.0-beta.18"
  4. npm install

it works for me. Thanks,

industrioustudy avatar Sep 28 '18 15:09 industrioustudy

@industrioustudy what version of angular?

Did not work for

whitewaves avatar Oct 03 '18 14:10 whitewaves

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",

mikenap avatar Oct 05 '18 22:10 mikenap

@industrioustudy Thanks Man its work for me Too

FryannM avatar Nov 18 '18 23:11 FryannM

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

simplyeleza avatar Nov 23 '18 22:11 simplyeleza