Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mayras opened this issue Sep 2, 2018 · 22 comments

Comments

@mayras
Copy link

mayras commented Sep 2, 2018

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 mayras changed the title 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. ERROR in node_modules/@angular/flex-layout/extended/typings/style/style.d.ts(72,67) Sep 2, 2018
@pereslava
Copy link

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

@ranst91
Copy link

ranst91 commented Sep 2, 2018

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

@nripoli4810
Copy link

nripoli4810 commented Sep 2, 2018

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.

@AnthonyNahas
Copy link

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 💯

@pereslava
Copy link

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...

@CaerusKaru
Copy link
Member

Duplicate of #827

@CaerusKaru CaerusKaru marked this as a duplicate of #827 Sep 4, 2018
@mariamtsartsidze
Copy link

How should I rollback rxjs to 6.2.2? I've got 6.3.2. npm install -g rxjs@6.2.2 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?

vincentdecattoire added a commit to vincentdecattoire/product-management that referenced this issue Sep 7, 2018
@ghost
Copy link

ghost commented Sep 7, 2018

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

@Eholl80
Copy link

Eholl80 commented Sep 10, 2018

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

@rahul230691
Copy link

Thanks @yaseen-nadaf .. Solution worked for me 👍

@k0nstantink
Copy link

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

@tjbernard
Copy link

Thank very very much @yaseen-nadaf. It worked!

@alo
Copy link

alo commented Sep 14, 2018

worked for me too! thanks @yaseen-nadaf !

@SlimAidar
Copy link

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

@ghost
Copy link

ghost commented Sep 19, 2018

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.

@industrioustudy
Copy link

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,

@whitewaves
Copy link

@industrioustudy what version of angular?

Did not work for

@mikenap
Copy link

mikenap commented Oct 5, 2018

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

@FryannM
Copy link

FryannM commented Nov 18, 2018

@industrioustudy Thanks Man its work for me Too

@simplyeleza
Copy link

I faced the same problem.
I Installed this particular typescript version.

0n your local project = npm install typescript@2.9.2
Globally= npm install -g typescript@2.9.2
Check version = tsc -v

@jpelton-stroud
Copy link

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

Whelp, I can tell ya it does not work w/ the following:

Angular CLI: 7.1.3
Node: 8.14.0
OS: linux x64
Angular: 7.1.3
... animations, cli, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.11.3
@angular-devkit/build-angular 0.11.3
@angular-devkit/build-optimizer 0.11.3
@angular-devkit/build-webpack 0.11.3
@angular-devkit/core 7.1.3
@angular-devkit/schematics 7.1.3
@angular/flex-layout 7.0.0-beta.21
@ngtools/webpack 7.1.3
@schematics/angular 7.1.3
@schematics/update 0.11.3
rxjs 6.3.3
typescript 3.1.6
webpack 4.23.1

@angular-automatic-lock-bot
Copy link

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests