Module not found: Error: Can't resolve 'rxjs/Observable' in '/Users/emish/kondo/node_modules/@ionic-native/screen-orientation'
See original GitHub issueBug Report
Ionic Info
Run ionic info
from a terminal/cmd prompt and paste the output below.
Ionic:
ionic (Ionic CLI) : 4.1.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0-beta.3
@angular-devkit/core : 0.7.4
@angular-devkit/schematics : 0.7.4
@angular/cli : 6.1.4
@ionic/ng-toolkit : 1.0.7
@ionic/schematics-angular : 1.0.5
Cordova:
cordova (Cordova CLI) : 8.0.0
Cordova Platforms : android 7.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.2, cordova-plugin-ionic-webview 2.0.3, (and 4 other plugins)
System:
ios-deploy : 2.0.0
ios-sim : 7.0.0
NodeJS : v9.2.0 (/usr/local/bin/node)
npm : 6.4.0
OS : macOS High Sierra
Xcode : Xcode 9.4.1 Build version 9F2000
Describe the Bug Failed to compile.
./node_modules/@ionic-native/screen-orientation/index.js Module not found: Error: Can’t resolve ‘rxjs/Observable’ in ‘/Users/emish/kondo/node_modules/@ionic-native/screen-orientation’
Steps to Reproduce 1- Install the Cordova and Ionic Native plugins: $ ionic cordova plugin add cordova-plugin-screen-orientation $ npm install --save @ionic-native/screen-orientation
2- add it to the application as in the documentation
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Module not found: Can't resolve 'rxjs' error | bobbyhadz
To solve the error Module not found: Error: Can't resolve 'rxjs', make sure to install the `rxjs` package by opening your terminal in...
Read more >I am getting error :- Module not found: Error: Can't resolve 'rxjs ...
I m getting the following error while coding in angular and don't know what to do. Module not found: Error: Can't resolve 'rxjs/Observable' ......
Read more >how to fix Module not found: Error: Can't resolve 'rxjs ... - GitHub
The issue seems to be rxjs version not compatible with Angular 8.Try running this command once : npm install --save rxjs-compat and see...
Read more >error: cannot find module 'rxjs' - You.com | The AI Search ...
Try setting the "moduleResolution": "node" inside your compileOptions to specify module resolution strategy for TS. npm install rxjs --save.
Read more >Module not found: Error: Can't resolve 'rxjs/Observable' in 'C ...
... getting error :- Module not found: Error: Can't resolve 'rxjs/Observable' in 'C:\Users\suraj\Desktop\new\node_modules\angularfire2\database\list'-rx.js.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I think you have to use
"@ionic-native/screen-orientationr": "5.0.0-beta.14",
and importimport { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';
For Ionic 4 beta native plugin installation the import path must end with /ngx.
Follow the guide
https://beta.ionicframework.com/docs/native/#Add_Plugins_to_Your_App_Module