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

same, just installed the cli and getting the same error. [Update] Tried a couple of versions

Angular CLI: 1.7.0-beta.0
Node: 9.4.0
OS: darwin x64
Angular:
----
Angular CLI: 1.6.0
Node: 9.4.0
OS: darwin x64
Angular:
----
Angular CLI: 1.6.3
Node: 9.4.0
OS: darwin x64
Angular:

With the same result

alexsapran avatar Jan 12 '18 22:01 alexsapran

I am getting this error, too.

Angular CLI: 1.6.4 Node: 7.10.0 OS: linux x64 Angular: ...

ghost avatar Jan 12 '18 22:01 ghost

Me too Angular cli: 1.6.4 Node: 8.8.1 OS: Windows 10

j-c-levin avatar Jan 12 '18 22:01 j-c-levin

Same error, Angular CLI: 1.6.4 Node: 8.9.4 OS: win32 x64

fhnaseer avatar Jan 12 '18 22:01 fhnaseer

Same Error: Angular CLI: 1.6.4 Node: 9.4.0 OS: linux x64 npm --version: 5.6.0

nilsfriess avatar Jan 12 '18 22:01 nilsfriess

oh my god ! i am having the same problem ! in addition now ! i re down graded to my working version 1.5.3 , that was working all the time perfectly, and still ! i receive the same error ! nothing is fixing my problem !!! HELP NEEDED

anankassis avatar Jan 12 '18 22:01 anankassis

I can offer no help. But I have deep sympathy as I see the same problem.

derobiom avatar Jan 12 '18 22:01 derobiom

Following this worked -

npm install @angular-devkit/[email protected] @angular/cli --no-save
$(npm bin)/ng new my-new-app

mendhak avatar Jan 12 '18 22:01 mendhak

https://github.com/angular/devkit/commit/e1f435606ffcf29b3311ab7204ef3eb84d661be2#diff-0dfbc02885bfb31a1e86e72520aad335

This is the commit in the schematics.ts file in the package @angular-devkit/schematics which is causing the problem

As this is just some refactoring, maybe it would be best to just go back. See this issue on the devkit github: https://github.com/angular/devkit/issues/380

nilsfriess avatar Jan 12 '18 22:01 nilsfriess

See @maymarx answer in https://github.com/angular/devkit/issues/380:

adding "@angular-devkit/schematics":"0.0.42", "@angular-devkit/core": "0.0.23", to the package.json fixes the problems if you need a quick fix before the weekend

nilsfriess avatar Jan 12 '18 22:01 nilsfriess

Same issue here too guys and gals!

slick-k avatar Jan 12 '18 22:01 slick-k

Adding "@angular-devkit/schematics":"0.0.42", "@angular-devkit/core": "0.0.23", to the package.json (dev dependencies) worked for me also.

derobiom avatar Jan 12 '18 22:01 derobiom

how you add those things you talked about ?! exactly ??? like what to add ?? just "":"0.0.42", "": "0.0.23" ???

anankassis avatar Jan 12 '18 22:01 anankassis

i have the same issue, after adding "@angular-devkit/schematics":"0.0.42", "@angular-devkit/core": "0.0.23", to the package.json, i uninstalled angular cli and re installed it, but the same issue pops up

iamviswajith avatar Jan 12 '18 22:01 iamviswajith

they are dependencies which can be added to the package.json of your project, and no "":"0.0.42", "": "0.0.23" is not enough. you need the full dependency names: "@angular-devkit/schematics":"0.0.42", "@angular-devkit/core": "0.0.23"

In my case, I had no project to add these dependencies to (creating a new one now), so I had to follow @eclanrs's solution at https://github.com/angular/devkit/issues/380:

npm i @angular-devkit/[email protected] @angular/cli --no-save

gurgelv avatar Jan 12 '18 22:01 gurgelv

thanks @gurgelv that worked 👍

iamviswajith avatar Jan 12 '18 23:01 iamviswajith

Thanks @gurgelv, works!

ricartoons avatar Jan 12 '18 23:01 ricartoons

That will make you able to create a new project correct !! but try to do ng new component name you will still get : Error: dryRunSink.commit(...).ignoreElements(...).concat is not a function dryRunSink.commit(...).ignoreElements(...).concat is not a function

anankassis avatar Jan 12 '18 23:01 anankassis

Adding

"@angular-devkit/schematics":"0.0.42", 
"@angular-devkit/core": "0.0.23" 

into devDependencies don't resolve problem in my case. The build still broken.

IhorSyrov avatar Jan 12 '18 23:01 IhorSyrov

i have of same problem :C

LeezMito avatar Jan 12 '18 23:01 LeezMito