question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ng g input.mergeMap is not a function

See original GitHub issue

ng 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:closed
  • Created 6 years ago
  • Reactions:21
  • Comments:41 (2 by maintainers)

github_iconTop GitHub Comments

26reactions
BenevidesLecontescommented, Dec 8, 2017

I was able to fix installing this locally @angular-devkit/schematics@0.0.40

23reactions
josequescommented, Dec 7, 2017

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 with npm remove @angular/cli --save in my project folder.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found