question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module not found: Error: Can't resolve 'rxjs/Observable' in '/Users/emish/kondo/node_modules/@ionic-native/screen-orientation'

See original GitHub issue

Bug 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:closed
  • Created 5 years ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Anthony2539commented, Aug 27, 2018

I think you have to use "@ionic-native/screen-orientationr": "5.0.0-beta.14", and import import { ScreenOrientation } from '@ionic-native/screen-orientation/ngx';

1reaction
guillefdcommented, Sep 7, 2018

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

To use a plugin, import and add the plugin injectable to a @NgModule. For Angular, the import path should end with /ngx.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found