angular-cli icon indicating copy to clipboard operation
angular-cli copied to clipboard

Error: dryRunSink.commit(...).ignoreElements(...).concat is not a function

Open rilwans opened this issue 8 years ago • 108 comments

Just Upgraded to Angular CLI: 1.6.4

each time I run ng new I get this error

Error: dryRunSink.commit(...).ignoreElements(...).concat is not a function dryRunSink.commit(...).ignoreElements(...).concat is not a function

rilwans avatar Jan 12 '18 22:01 rilwans

I am also stuck with same error: Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64 Angular:

salimperwaiz avatar Jan 12 '18 23:01 salimperwaiz

Great solution @gurgelv works perfect!

tarah-s avatar Jan 12 '18 23:01 tarah-s

thank u! @gurgelv it works fine!

casehill avatar Jan 12 '18 23:01 casehill

For some reason I had a earlier local version of the CLI? Make sure you don't. Mine seems to be working now (not getting this error) with the above additions to package.json BUT I think there may be other problems. But I'm able to create components and modules. Angular CLI: 1.6.4 Node: v8.9.1 OS: Win10 x64

derobiom avatar Jan 12 '18 23:01 derobiom

Thank you @gurgelv it works!

salimperwaiz avatar Jan 12 '18 23:01 salimperwaiz

I Needed to npm install , after adding those lines to the dev dependencies , and i think now it is working

anankassis avatar Jan 12 '18 23:01 anankassis

I have the same error: "Error: dryRunSink.commit(...)"

  • Node.js: v9.4.0
  • npm: 5.6.0
  • Angular CLI: 1.6.4

Maybe I would to reinstall Angular CLI 1.5 The commands that I used

  • sudo npm un -g @angular/cli
  • sudo npm cache clean --force
  • sudo npm i -g @angular/[email protected]

DiegoRodriguezTandil avatar Jan 12 '18 23:01 DiegoRodriguezTandil

The same problem here.

Node: 8.5 NPM: 5.3

ng-cli: 1.4.3 ng-cli: 1.5.3 ng-cli: 1.6.4

I've tried with the above cli's versions and is the same problem. For 1.4 and 1.5 cli version I can't create new components, with 1.6 version I can't create new projects.

cdCarlos avatar Jan 12 '18 23:01 cdCarlos

i don't get it ... was working fine just a while ago and then i got the dreaded error why is rolling back to an older version of the cli still producing the same error? tried 1.5.3

Metrophobe avatar Jan 13 '18 00:01 Metrophobe

There is a fix about to be released for this based upon PR angular/devkit#384

Brocco avatar Jan 13 '18 00:01 Brocco

@Metrophobe I think the issue is with the angular/devkit dependency, so even if you use lower releases of ng-cli you'll still get the faulty dependency.

Cosmin-Parvulescu avatar Jan 13 '18 00:01 Cosmin-Parvulescu

@Metrophobe I think the issue is with the angular/devkit dependency, so even if you use lower releases of ng-cli you'll still get the faulty dependency.

so can we actually install an older angular/devkit and get back up and running ? the proposed solution previously further up is not working for me ... projects/ components not generating and am in the middle of some work! :(

Metrophobe avatar Jan 13 '18 00:01 Metrophobe

There is a fix about to be released for this based upon PR angular/devkit#384

Many thanks for the effort! How do I apply this fix ?

Metrophobe avatar Jan 13 '18 00:01 Metrophobe

Working on getting it released to npm, so all you would need to do is reinstall.

Brocco avatar Jan 13 '18 00:01 Brocco

@Brocco Thanks

rilwans avatar Jan 13 '18 00:01 rilwans

@Brocco, does it fix the whole range of issues including the generator commands?

Cosmin-Parvulescu avatar Jan 13 '18 00:01 Cosmin-Parvulescu

@Brocco I reinstall angular-cli and the ng new is fixed but ng generate is still failing Should I have to update anything else? Node: 9.4.0 CLI: 1.6.4

DiegoRodriguezTandil avatar Jan 13 '18 00:01 DiegoRodriguezTandil

@DiegoRodriguezTandil, the fix is not on NPM yet, you can check it out on the project page...

Cosmin-Parvulescu avatar Jan 13 '18 00:01 Cosmin-Parvulescu

Oh boy - I guess there will be a fix by tomorrow

gareththomasnz avatar Jan 13 '18 00:01 gareththomasnz

@Cosmin-Parvulescu it will fix generate commands as well.

Brocco avatar Jan 13 '18 00:01 Brocco