Cannot find module "rxjs/operators"

错误信息:

Error

Close

Runtime Error

Cannot find module "rxjs/operators"

Stack

Error: Cannot find module "rxjs/operators" at Object. (http://localhost:8100/build/vendor.js:44783:7) at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30) at Object. (http://localhost:8100/build/vendor.js:73861:78) at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30) at Object. (http://localhost:8100/build/vendor.js:73845:67) at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30) at Object. (http://localhost:8100/build/vendor.js:73800:76) at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30) at Object. (http://localhost:8100/build/vendor.js:73735:81) at __webpack_require__ (http://localhost:8100/build/vendor.js:55:30)

Ionic Framework: 3.8.0 Ionic Native: 2.9.0 Ionic App Scripts: 3.2.0 Angular Core: 4.4.3 Angular Compiler CLI: 4.4.3 Node: 10.13.0 OS Platform: Windows 10 Navigator Platform: Win32 User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36

解决办法:

修改package.json文件,

把"rxjs": "5.4.2",改为"rxjs": "5.5.2"

 

你可能感兴趣的:(ionic)