ng g input.mergeMap is not a function
See original GitHub issueng g app-shell
works on a fresh app but on my project I get the following error but no idea what it means
TypeError: input.mergeMap is not a function
at Object.callRule (/node_modules/@angular-devkit/schematics/src/rules/call.js:70:18)
at SchematicImpl.call (/node_modules/@angular-devkit/schematics/src/engine/schematic.js:35:23)
at Promise (/node_modules/@angular/cli/tasks/schematic-run.js:73:23)
at new Promise (<anonymous>)
at Class.run (/node_modules/@angular/cli/tasks/schematic-run.js:72:16)
at Class.run (/node_modules/@angular/cli/commands/generate.js:152:33)
at resolve (/node_modules/@angular/cli/ember-cli/lib/models/command.js:261:20)
at new Promise (<anonymous>)
at Class.validateAndRun (/node_modules/@angular/cli/ember-cli/lib/models/command.js:240:12)
at Promise.resolve.then.then (/node_modules/@angular/cli/ember-cli/lib/cli/cli.js:140:24)
The only thing I can think of is it’s a multi app setup structured like
src
-- client
-- app
-- admin
-- app
-- environments
but I’ve tried setting the root and get the same result
ng generate app-shell [ --universal-app universal --root src/client ]
Issue Analytics
- State:
- Created 6 years ago
- Reactions:21
- Comments:41 (2 by maintainers)
Top Results From Across the Web
ng g app-shell input.mergeMap is not a function - Stack Overflow
ng g component testComponent. I got this error input.mergeMap is not a function TypeError: input.mergeMap is not a function at Object.
Read more >angular/angular - Gitter
@here: I had create component with ng g component but have error: input.mergeMap is not a function. You can help me. I have...
Read more >mergeMap / flatMap - Learn RxJS
This operator is best used when you wish to flatten an inner observable but want to manually control the number of inner subscriptions....
Read more >User NetEmmanuel - Stack Exchange
ng g app-shell input.mergeMap is not a function · angular angular-cli angular5 asked Dec 11, 2017 at 12:01. stackoverflow.com. Top Answers.
Read more >[Solved]-How to reload data after a post-angular.js
**setTimeout() sets a timer and executes a callback function after the timer expires.**. Lalit Amrutkar 26. Source: stackoverflow.com ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I was able to fix installing this locally
@angular-devkit/schematics@0.0.40
It seems that if you have
@angular/cli
installed globally and a different version installed locally it gets broken. I solved the same error removing the cli package that was installed locally withnpm remove @angular/cli --save
in my project folder.