我正在使用基于 angular 6 的 Ionic 4 创建一个离子应用程序!要设置屏幕方向安装以下插件。
ionic cordova plugin add cordova-plugin-screen-orientation
npm install --save @ionic-native/screen-orientation
并导入所需的打字稿!但是当我运行这个项目时,我得到了下面的错误。
ERROR in node_modules/@ionic-native/screen-orientation/index.d.ts(2,10): error TS2305: Module '"/Users/karthikcp/Documents/IONIC/myBake/node_modules/rxjs/Observable"' has no exported member 'Observable'.
[ng] node_modules/rxjs/Observable.d.ts(1,15): error TS2307: Cannot find module 'rxjs-compat/Observable'.
谁能帮我解决这个错误?