Error: dryRunSink.commit(...).ignoreElements(...).concat is not a function
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
@MartinNuc right! So the trick when using yarn is to first update package.json as described by @jgarciao, delete yarn.lock, and then run yarn install.
same error, thk for up
I have fixed it by install proper rxjs version:
yarn add [email protected]
But, my error was
dryRunSink.commit(...).ignoreElements is not a function
@mendhak solution worked for me!
I have the proper rxjs version (5.5.2) along with all the proper version above and I still see the same error.
Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function
Hi, has someone tried to solve the problem with angular-cli v1.7.0-beta.1? I'm referring to:
Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function
have the exact same issue right now when using ng generate component
@andreimcristof try this npm install @angular-devkit/[email protected] @angular/cli --no-save
seems updating to
"@angular-devkit/schematics":"0.0.51",
"@angular-devkit/core": "0.0.28",
and deleting node_modules + npm install might have done the trick for me. But I also updated some other versions of ng libraries that were warned about after previous installs, so I can't say with absolute certainty that the above two lines are what pushed it over the top.
So, at least ng g service bla now works.
Also experiencing this issue, tried various fixes suggested here. I don't think this issue should be closed.
Error:
ng g component name
Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function
And version info:
Angular CLI: 1.6.5
Node: 9.2.0
OS: darwin x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router
@angular/cdk: 5.1.0
@angular/cli: 1.6.5
@angular/flex-layout: 2.0.0-beta.10-4905443
@angular/material: 5.1.0
@angular-devkit/build-optimizer: 0.0.41
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.45
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.16
typescript: 2.4.2
webpack-bundle-analyzer: 2.9.2
webpack: 3.10.0
EDIT: My problem was with using rxjs 5.5.2. I changed to the following dev dependencies:
"@angular-devkit/core": "0.0.28",
"@angular-devkit/schematics": "0.0.51",
and updated to rxjs 5.5.6
"rxjs": "5.5.6",
and then deleted my node_modules and package-lock, then npm install. Hope this helps someone.
@mendhak solution didn't work for me. I got a new one after that:
Error: Path "/app/app.module.ts" does not exist. Path "/app/app.module.ts" does not exist.
I don't think this issue should be closed.
I've tried every single solution offered here and nothing works. This is ridiculous. Why is this issue closed?
Try using this:
yarn add --dev @angular-devkit/core@^0.0.28 yarn add rxjs@^5.5.2 rm -rf yarn.lock; rm -rf node_modules; yarn;
This error cause in angular-devkit/core. There was undefined observable method. Yesterday it was take me about 3 hours to investigate and fix that. I hope it will help
I have found a solution for my project: I have deleted my node_modules folder, checked my package.json and installed my dependencies in several steps:
- Angular dependencies and devDependencies (all the dependencies which come with
ng new app) - Material deps
- all other dependencies
Here is my package.json
"dependencies": {
"@angular/animations": "~5.2.2",
"@angular/cdk": "^5.1.0",
"@angular/common": "~5.2.2",
"@angular/compiler": "~5.2.2",
"@angular/core": "~5.2.2",
"@angular/flex-layout": "2.0.0-beta.12",
"@angular/forms": "~5.2.2",
"@angular/http": "~5.2.2",
"@angular/material": "^5.1.0",
"@angular/platform-browser": "~5.2.2",
"@angular/platform-browser-dynamic": "~5.2.2",
"@angular/router": "~5.2.2",
"classlist.js": "1.1.20150312",
"core-js": "2.5.3",
"hammerjs": "2.0.8",
"intl": "1.2.5",
"moment": "2.20.1",
"moment-business": "3.0.1",
"parse-decimal-number": "1.0.0",
"rxjs": "^5.5.6",
"web-animations-js": "2.3.1",
"zone.js": "0.8.4"
},
"devDependencies": {
"@angular/cli": "^1.6.5",
"@angular/compiler-cli": "~5.2.2",
"@angular/language-service": "~5.2.2",
"@types/jasmine": "2.5.38",
"@types/node": "6.0.96",
"codelyzer": "4.1.0",
"jasmine-core": "2.6.4",
"jasmine-spec-reporter": "4.1.1",
"karma": "1.4.1",
"karma-chrome-launcher": "2.0.0",
"karma-cli": "1.0.1",
"karma-coverage-istanbul-reporter": "0.2.0",
"karma-jasmine": "1.1.0",
"karma-jasmine-html-reporter": "0.2.2",
"protractor": "5.1.2",
"replace-in-file": "2.6.4",
"sass-lint": "1.10.2",
"ts-node": "3.2.2",
"tslint": "5.7.0",
"typescript": "2.4.2"
}
Not working
mivanov@9TDQH5J MINGW64 /c/Develop/rosnfo-ui/rosnfo-ui/src/app/test (hotfix/RSBNFO-302/sms-product-bugfix)
$ ng g c Test
Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function
mivanov@9TDQH5J MINGW64 /c/Develop/rosnfo-ui/rosnfo-ui/src/app/test (hotfix/RSBNFO-302/sms-product-bugfix)
$ ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.6.5
Node: 8.9.1
OS: win32 x64
Angular: 5.2.2
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic, router
@angular/cdk: 5.1.0
@angular/cli: 1.6.5
@angular/material: 5.1.0
@angular-devkit/build-optimizer: 0.0.42
@angular-devkit/core: 0.0.28
@angular-devkit/schematics: 0.0.51
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.5
@schematics/angular: 0.1.17
typescript: 2.4.2
webpack-bundle-analyzer: 2.9.2
webpack: 3.10.0
This was closed as no longer an issue, but I just installed @angular/cli (using npm install -g @angular/cli@latest) and cannot create a new app. Is 1.6.5 still pulling in the old dependency? I was under the impression, per https://github.com/angular/angular-cli/issues/9283#issuecomment-358937066 that this was no longer an issue.
C:\workspace>ng -v
_ _ ____ _ ___
/ \ _ __ __ _ _ _| | __ _ _ __ / ___| | |_ _|
/ △ \ | '_ \ / _` | | | | |/ _` | '__| | | | | | |
/ ___ \| | | | (_| | |_| | | (_| | | | |___| |___ | |
/_/ \_\_| |_|\__, |\__,_|_|\__,_|_| \____|_____|___|
|___/
Angular CLI: 1.6.5
Node: 6.11.1
OS: win32 x64
Angular:
...
C:\workspace>ng new test
Error: dryRunSink.commit(...).ignoreElements is not a function
dryRunSink.commit(...).ignoreElements is not a function
C:\workspace>npm list -g --depth=1
C:\Users\me\AppData\Roaming\npm
+-- @angular/[email protected]
| +-- @angular-devkit/[email protected]
| +-- @angular-devkit/[email protected]
| +-- @angular-devkit/[email protected]
| +-- @ngtools/[email protected]
| +-- @ngtools/[email protected]
| +-- @schematics/[email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| +-- [email protected]
| `-- [email protected]
`-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
+-- [email protected]
`-- [email protected]
Please reopen, still an issue
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.
@Brocco Thank you, it is worked))
@Brocco We -The Developers- understand the complexity of such technology n we love n appreciate all of ur efforts BUT please take into consideration testing whatever new build before pushing, as a bug blocks n wastes thousands of hours of angular lovers, thanks for understanding, cheers!