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

@Brocco problem solved! Thank you!

hugocaldeira avatar Jan 26 '18 16:01 hugocaldeira

Thank you @gurgelv, that's works fine for me.

LunoDaniel avatar Jan 31 '18 10:01 LunoDaniel

@gurgelv You're a Rockstar!, thank you

CarMoreno avatar Feb 09 '18 18:02 CarMoreno

I had the same problem. But this (npm install @angular-devkit/[email protected] @angular/cli --no-save) solved my problem.

My big thanks go to Mendhak.

nyoman avatar Apr 13 '18 08:04 nyoman

I had the same problem but not quite sure if it might work for the rest of you guys, but essentially i deleted node_module folder then uninstalled @angular/cli and re-install it once again but with higher version and finally updated the current node.

Sharkesm avatar May 12 '18 06:05 Sharkesm

I was helped

"@angular-devkit/ сore": "^0.6.8",
"@angular-devkit/ schematics": "^0.6.8",
"@angular/cli": "^1.7.4",
"@angular/compiler-cli": "^5.1.1",

Herotko avatar Jun 07 '18 08:06 Herotko

We the "CLI Team" would like to apologize for the confusion.

Status

This issue has been resolved in version 1.6.6.

Updating

The steps to update your environment to the latest version containing the fix:

npm uninstall -g @angular/cli
npm cache clean
# if npm version is > 5 then use `npm cache verify` to avoid errors (or to avoid using --force)
npm install -g @angular/cli@latest

rm -rf node_modules dist # use rmdir /S/Q node_modules dist in Windows Command Prompt; use rm -r -fo node_modules,dist in Windows PowerShell
npm install --save-dev @angular/cli@latest
npm install

Explanation

The issue of [rxjs operator] is not a function is a result of the migration of the devkit repo to using "pipeable" (formerly "lettable") operators instead of the prototype patching approach that the Angular CLI was using prior to release 1.6.6 (which was just released). The commit which fixed it is here.

The issue is that the CLI was using operators that were not imported and relied on them being on the Observable object. When the devkit was updated it removed this function and the bug in the CLI was exposed. The latest version of the CLI is now using pipeable operators and therefore importing all of the operators needed to work with observables, so this issue has been resolved.

Thank you for your patience and for contributing by reporting this issue.

Hi, The suggested version 1.6.6 is compatible with Angular 5? If no, there is a different version that is compatible & work properly? Regards

zshlomyz avatar Oct 22 '18 10:10 zshlomyz

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.