Repository navigation
Closed
Labels
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulneeds: more infoReporter must clarify the issuetype: bug/fix
Description
Versions
Angular CLI: 1.6.0
Node: 8.9.1
OS: win32 x64
Angular: 5.1.0
... animations, common, compiler, compiler-cli, core, forms
... http, platform-browser, platform-browser-dynamic
... platform-server, router, upgrade
@angular/cli: 1.6.0
@angular/flex-layout: 2.0.0-rc.1
@angular-devkit/build-optimizer: 0.0.36
@angular-devkit/core: 0.0.22
@angular-devkit/schematics: 0.0.42
@ngtools/json-schema: 1.1.0
@ngtools/webpack: 1.9.0
@schematics/angular: 0.1.11
@schematics/schematics: 0.0.11
typescript: 2.4.2
webpack: 3.10.0
Repro steps
- Install Angular and CLI as described above
- Try
ng generate component test
Observed behavior
ng generate ...crashes with the error messageinput.mergeMap is not a function.- The error happens for the
generatecommand in general, not just forng g cfor example - No files are created
- The complete output is:
C:\Users\Enzo\WebstormProjects\test-project>ng g c test
input.mergeMap is not a function
TypeError: input.mergeMap is not a function
at Object.callRule (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular-devkit\schematics\src\rules\call.js:78:18)
at SchematicImpl.call (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular-devkit\schematics\src\engine\schematic.js:35:23)
at Promise (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\tasks\schematic-run.js:73:23)
at new Promise (<anonymous>)
at Class.run (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\tasks\schematic-run.js:72:16)
at Class.run (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\commands\generate.js:152:33)
at resolve (C:\Users\Enzo\WebstormProjects\test-project\node_modules\@angular\cli\ember-cli\lib\models\command.js:261:20)
at new Promise (<anonymous>)
at Class.validateAndRun (C:\Users\Enzo\WebstormProjects\test-projectnode_modules\@angular\cli\ember-cli\lib\models\command.js:240:12)
at Promise.resolve.then.then (C:\Users\Enzo\WebstormProjects\test-projectnode_modules\@angular\cli\ember-cli\lib\cli\cli.js:140:24)
Desired behavior
- The
ng generatecommand should generate files and adjustapp.module.tsas usual
Additional information
- Opened a new issue as described in #8782
Reacted by Micaël Mbagira, Rahul Salvi, Patrick Domnick, Kevin Machielsen, joel00, Ivan Matiishyn, Gleb Mikheev, kraftwer1, Shankar Chandrasekar, thecp and 17 more
Metadata
Metadata
Assignees
Labels
P1Impacts a large percentage of users; if a workaround exists it is partial or overly painfulneeds: more infoReporter must clarify the issuetype: bug/fix
Activity
Brocco commentedon Dec 21, 2017
Can you please post the results of running:
Also, could you post the repository to github and share?
neo-clon commentedon Dec 21, 2017
I have the same error :(
input.mergeMap is not a function TypeError: input.mergeMap is not a function at Object.callRule (D:\Source\Repos\Trade\ibelectron\node_modules\@angular-devkit\schematics\src\rules\call.js:78:18) at SchematicImpl.call (D:\Source\Repos\Trade\ibelectron\node_modules\@angular-devkit\schematics\src\engine\schematic.js:35:23) at Promise (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\tasks\schematic-run.js:73:23) at new Promise (<anonymous>) at Class.run (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\tasks\schematic-run.js:72:16) at Class.run (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\commands\generate.js:161:33) at resolve (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\ember-cli\lib\models\command.js:261:20) at new Promise (<anonymous>) at Class.validateAndRun (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\ember-cli\lib\models\command.js:240:12) at Promise.resolve.then.then (D:\Source\Repos\Trade\ibelectron\node_modules\@angular\cli\ember-cli\lib\cli\cli.js:140:24)mikenauman commentedon Dec 21, 2017
I was having the same error. This was the result from
npm ls rxjs:├─┬ @angular/cli@1.6.0
│ ├─┬ UNMET PEER DEPENDENCY @angular-devkit/schematics@0.0.41
│ │ ├── UNMET PEER DEPENDENCY @angular-devkit/schematics@0.0.40
│ │ └── rxjs@5.5.5
│ └── rxjs@5.5.5
├── UNMET PEER DEPENDENCY @angular/compiler@5.1.0
├── UNMET PEER DEPENDENCY @angular/core@5.1.0
└── rxjs@5.5.5
I ran:
npm updateAnd now it works.
neo-clon commentedon Dec 21, 2017
Thanks! I ran
yarn upgradeand now works :)evolkmann commentedon Dec 22, 2017
Output of
npm ls rxjs:As suggested, I ran
npm update, but this had no effect for me.evolkmann commentedon Dec 22, 2017
@Brocco I can not publish the original repo, but I created a new project and copied the exact dependecies:
https://github.com/evolkmann/test-ng-generate
In this particular setup, the error happens and can be reproduced.
ng -vprints:fix(@angular/cli): Use lettable operators.
numzbk commentedon Dec 26, 2017
yarn upgrade it work for me
refactor: Update rxjs operators to be lettable
solkaz commentedon Jan 11, 2018
After running
yarn upgradeand then trying to generate a module, I get:Running
ng --version:refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
refactor: Update rxjs operators to be lettable
angular-automatic-lock-bot commentedon Sep 7, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.
refactor: Update rxjs operators to be lettable