我正在使用IONIC3构建一个移动应用程序,一切正常,但是当我添加@ngx-translate时,我得到了这个错误,我没有找到任何解决这个问题的方法
离子(离子CLI):3.12.0
Uncaught Error: Cannot find module "rxjs/operators/share"
at Object.<anonymous> (vendor.js:159023)
at Object.<anonymous> (core.es5.js:3855)
at __webpack_require__ (bootstrap 4cdf06f8badf4bef7b37:54)
at Object.397 (main.ts:5)
at __webpack_require__ (bootstrap 4cdf06f8badf4bef7b37:54)
at Object.392 (main.js:852)
at __webpack_require__ (bootstrap 4cdf06f8badf4bef7b37:54)
at webpackJsonpCallback (bootstrap 4cdf06f8badf4bef7b37:25)
at main.js:1发布于 2017-12-18 00:13:14
帮助我将@ngx-translate/core的版本更改为version:"7.2.2“
我已经与ngx-translate https://github.com/ngx-translate/core/blob/master/examples/ionic/package.json的github repo工作实例进行了比较
在您的package.json中更改@ngx-translate/core的版本
转到"@ngx-translate/core": "7.2.2",
并运行npm update
发布于 2017-12-25 15:38:50
就在几天前,我还面临着同样的问题。您需要做的是卸载当前的@ngx-translate/core版本9.0.2。通过运行此命令npm uninstall @ngx-translate/core --save,这将删除该模块并更新您的package.json文件。现在再次安装该模块,并指定版本号,如下所示的npm install @ngx-translate/core@8.0.0 --save。
发布于 2018-01-24 22:28:01
这很可能是由您的rxjs版本引起的。请将其更新到最新的稳定版本,您应该不会再看到此问题。
https://stackoverflow.com/questions/47815581
复制相似问题