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?