Ngx-admin: Cannot create new component using CLI with ng generate component my-new-component. Error: input.mergeMap is not a function

Created on 12 Dec 2017  路  2Comments  路  Source: akveo/ngx-admin

When I use any of the angular cli commands to create new components/services/etc. I get the error "Error: input.mergeMap", it seems to be something to do with the discrepancy between the project angular/cli version and the global version:
I have @angular/cli version 1.6.0 installed globally, but version 1.4.9 is installed for this application.

-I've tried updating the @angular/cli version in the project but it some other errors happen, and I also end up with UNMET dependency errors when updating.
-I've also tried using "npm-check-updates package" to update all the dependencies and it also just causes other problems.

Both the above result in "npm start" not serving up the app without errors.

I don't really want to re-install my global @angular/cli to a lesser version just for this project, what can I do? I've just ended up adding components etc. manually but it would be great to have a solution for this.

Most helpful comment

I found a similar issue in the angular-cli repository:

I fixed it by looking at package.lock.json for the version number of @angular-devkit, and installed it as a dev dependency.

npm install @angular-devkit/[email protected] --save-dev

All 2 comments

I found a similar issue in the angular-cli repository:

I fixed it by looking at package.lock.json for the version number of @angular-devkit, and installed it as a dev dependency.

npm install @angular-devkit/[email protected] --save-dev

Closing it as it is an Angular issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mignam picture mignam  路  3Comments

xandatspain picture xandatspain  路  3Comments

dreamerleolioa picture dreamerleolioa  路  4Comments

argnist picture argnist  路  4Comments

PatrickHuetter picture PatrickHuetter  路  3Comments