加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

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

发布时间:2020-12-17 09:57:12 所属栏目:安全 来源:网络整理
导读:我正在尝试使用最新的角度cli来生成组件.我试图生成一个模块也有类似的错误. ng g component testComponent 我收到了这个错误 input.mergeMap is not a functionTypeError: input.mergeMap is not a function at Object.callRule (C:UsersdammyDocuments
我正在尝试使用最新的角度cli来生成组件.我试图生成一个模块也有类似的错误.
ng g component testComponent

我收到了这个错误

input.mergeMap is not a function
TypeError: input.mergeMap is not a function
    at Object.callRule (C:UsersdammyDocumentsVisual Studio 2017ProjectsCarsnode_modules@angular-devkitschematicssrcrulescall.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

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读