# RxJs failure after update

**URL:** <https://forum.ionicframework.com/t/rxjs-failure-after-update/38765>\
**Category:** ionic-v3\
**Created:** [December 8, 2015, 5:14pm UTC](https://forum.ionicframework.com/t/rxjs-failure-after-update/38765 "2015-12-08T17:14:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![swarner](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@swarner](https://forum.ionicframework.com/u/swarner)\
**Post date:** [December 8, 2015, 5:14pm UTC](https://forum.ionicframework.com/t/rxjs-failure-after-update/38765/1 "2015-12-08T17:14:23Z")

</div>

After updating ionic and attempting to serve I received a failure as shown below. I have since attempted to revert the update, but the problem persists:

> c:\Projects\NewsApp\>ionic serve  
> ? Compiling and bundling with Webpack…  
> √ Using your webpack.config.js file: c:\Projects\NewsApp\webpack.config.js

> ./~/@reactivex/rxjs/src/Rx.ts  
> Module parse failed: c:\Projects\NewsApp\node\_modules@reactivex\rxjs\src\Rx.ts Line 1: Unexpected t  
> oken  
> You may need an appropriate loader to handle this file type.  
> import Observable from ‘./Observable’;

> // operators  
> @ ./www/app/authentication/helpers/FacebookHelper.ts 2:9-67,./~/@reactivex/rxjs/src/observables/Err  
> orObservable.ts  
> Module parse failed: c:\Projects\NewsApp\node\_modules@reactivex\rxjs\src\observables\ErrorObservabl  
> e.ts Line 1: Unexpected token  
> You may need an appropriate loader to handle this file type.  
> import Scheduler from ‘…/Scheduler’;  
> import Observable from ‘…/Observable’;

> @ ./www/app/Services/OAuth/Twitter.ts 10:24-107 (CLI v2.0.0-alpha.25)

> Your system information:

> Cordova CLI: Not installed  
> Ionic Version: 2.0.0-alpha.38  
> Ionic CLI Version: 2.0.0-alpha.25  
> Ionic App Lib Version: 2.0.0-alpha.24  
> OS: Windows 7 SP1  
> Node Version: v5.1.1

Relevant code (from the first error listed):

```
import * as Rx from "../../../../node_modules/@reactivex/rxjs/src/Rx";
...
Rx.Observable
    .create(observer => {
        facebookConnectPlugin.login(["public_profile", "user_birthday"],
            data => {
                observer.onNext(data);
                observer.onComplete(data);
            },
            observer.onError
        )
    })

```

And the line it is complaining about from Rx:  
`import Observable from './Observable';`

Both should be valid typescript. It appears webpack or the typescript loader is having a fit.  
Is there any clear solution to this failure?

---

<div class="post-metadata">

**Author:** ![swarner](https://avatars.discourse-cdn.com/v4/letter/s/5f9b8f/32.png) [@swarner](https://forum.ionicframework.com/u/swarner)\
**Post date:** [December 8, 2015, 6:49pm UTC](https://forum.ionicframework.com/t/rxjs-failure-after-update/38765/2 "2015-12-08T18:49:37Z")

</div>

I fixed the problem by manually including secondary dependencies and fixing the npm reference path. I’m not sure why it wasn’t working, but it is resolved now.
