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.
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.
Most helpful comment
I found a similar issue in the angular-cli repository:
I fixed it by looking at
package.lock.jsonfor the version number of@angular-devkit, and installed it as a dev dependency.npm install @angular-devkit/[email protected] --save-dev