angular-ng g app-shell input.mergeMap不是一个函数

前端之家收集整理的这篇文章主要介绍了angular-ng g app-shell input.mergeMap不是一个函数前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在尝试使用最新的角度cli来生成组件.我试图生成一个模块也有类似的错误.
ng g component testComponent

我收到了这个错误

input.mergeMap is not a function
TypeError: input.mergeMap is not a function
    at Object.callRule (C:\Users\dammy\Documents\Visual Studio 2017\Projects\Cars\node_modules\@angular-devkit\schematics\src\rules\call.js:70:18)

我的Package.json文件如下所示:

{
 ...
  },"dependencies": {
    ...
    "css-loader": "0.28.4","es6-shim": "0.35.3","event-source-polyfill": "0.0.9","expose-loader": "0.7.3","extract-text-webpack-plugin": "2.1.2","file-loader": "0.11.2","html-loader": "0.4.5","isomorphic-fetch": "2.2.1","jquery": "3.2.1","json-loader": "0.5.4","preboot": "4.5.2","raw-loader": "0.5.1","reflect-Metadata": "0.1.10","rxjs": "5.5.5","style-loader": "0.18.2","to-string-loader": "1.1.5","typescript": "2.4.1","url-loader": "0.5.9","webpack": "2.5.1","webpack-hot-middleware": "2.18.2","webpack-merge": "4.1.0","zone.js": "0.8.12"
  },

我安装了:Angular/cli@1.6.0

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 

then install your CLI->

npm install -g @angular/cli@latest

猜你在找的Angularjs相关文章