Wp3Dev
Wp3Dev

Reputation: 2079

Cannot find module "rxjs/observable" on build. IONIC

I am working on an ionic app that is using AngularFire2. But when I push up the code to ionic i get a build error:

 ionic-app-scripts build


[22:28:07]  typescript: src/providers/sermon/sermon.ts, line: 4 
            Cannot find module 'rxjs/observable'. 

       L3:  import { AngularFirestore, AngularFirestoreCollection} from 'angularfire2/firestore';
       L4:  import { Observable } from 'rxjs/observable';

[22:28:07]  ionic-app-script task: "build" 
[22:28:07]  Error: Failed to transpile program 
Error: Failed to transpile program

I don't know what is going on... Could someone point me in the right direction for this?

Upvotes: 0

Views: 2792

Answers (2)

platzhersh
platzhersh

Reputation: 1562

With the new RxJs 6 it would be

import { Observable } from 'rxjs/Rx';

Upvotes: 0

AddWeb Solution Pvt Ltd
AddWeb Solution Pvt Ltd

Reputation: 21681

This is a simple typo mistake, pls replace that,

import { Observable } from 'rxjs/Observable'; // 'O' is capital in 'rxjs/Observable'

Upvotes: 4

Related Questions