Ionic-native: Needs updating for rxjs v6

Created on 5 Apr 2018  路  3Comments  路  Source: ionic-team/ionic-native

I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or https://ionicworldwide.herokuapp.com/

Current behavior:

We are going to be moving to Angular 6 and rxjs 6 for ionic-angular v4. Currently, because of breaking changes in rxjs, the current release of ionic-native will cause the ng cli to break with the following errors:

ng] ERROR in node_modules/@ionic-native/core/decorators.d.ts(1,10): error TS2305: Module '"C:/Users/jgw96/Projects/ionic-conference-app/node_modules/rxjs/Observable"' has no exported member 'Observable'.
[ng] node_modules/@ionic-native/core/plugin.d.ts(2,10): error TS2305: Module '"C:/Users/jgw96/Projects/ionic-conference-app/node_modules/rxjs/Observable"' has no exported member 'Observable'.
[ng] node_modules/@ionic-native/in-app-browser/index.d.ts(2,10): error TS2305: Module '"C:/Users/jgw96/Projects/ionic-conference-app/node_modules/rxjs/Observable"' has no exported member 'Observable'. 

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Ionic info: (run ionic info from a terminal/cmd prompt and paste output below):

insert the output from ionic info here

Most helpful comment

Adding my two cents. My ionic angular electron project when updating dependencies:

[10:39:56]  typescript: ...project/node_modules/@ionic-native/core/decorators.d.ts, line: 1
            Module '"A:/project/node_modules/rxjs/Observable"' has no exported member
            'Observable'.

       L1:  import { Observable } from 'rxjs/Observable';
       L2:  export interface PluginConfig {

[10:39:56]  typescript: ...project/node_modules/@ionic-native/core/plugin.d.ts, line: 1
            Module '"A:/project/node_modules/rxjs/Observable"' has no exported member
            'Observable'.

       L1:  import { Observable } from 'rxjs/Observable';
       L2:  import { CordovaOptions } from './decorators';

[10:39:56]  typescript: ...project/node_modules/ionic-angular/umd/components/input/input.d.ts, line: 3
            Module '"A:/project/node_modules/rxjs/Subject"' has no exported member
            'Subject'.

       L2:  import { NgControl } from '@angular/forms';
       L3:  import { Subject } from 'rxjs/Subject';
       L4:  import 'rxjs/add/operator/takeUntil';

[10:39:56]  typescript: ...project/node_modules/ionic-angular/umd/components/tabs/tabs.d.ts, line: 2
            Module '"A:/project/node_modules/rxjs/Subject"' has no exported member
            'Subject'.

       L1:  import { AfterViewInit, ElementRef, EventEmitter, Renderer, ViewContainerRef } from '@angular/core';
       L2:  import { Subject } from 'rxjs/Subject';
       L3:  import 'rxjs/add/operator/takeUntil';

[10:39:56]  typescript: A:/project/node_modules/rxjs/Observable.d.ts, line: 1
            Cannot find module 'rxjs-compat/Observable'.

       L1:  export * from 'rxjs-compat/Observable';

[10:39:56]  typescript: A:/project/node_modules/rxjs/Subject.d.ts, line: 1
            Cannot find module 'rxjs-compat/Subject'.

       L1:  export * from 'rxjs-compat/Subject';

I want to fix this properly but I've been breaking a lot of existing projects lately messing around while learning these building technologies...so... yarn add rxjs-compat 馃樃

Would this fix 'properly' if I installed the latest @ionic/angular (_disambiguation_ not ionic-angular?) or do I need to run yarn add for all latest versions of @ionic packages?

All 3 comments

@danielsogl When will this be released?

We will release Ionic Native V5 together with Ionic V4. If you need rxjs 6 support you can use the latest v5 beta.

Adding my two cents. My ionic angular electron project when updating dependencies:

[10:39:56]  typescript: ...project/node_modules/@ionic-native/core/decorators.d.ts, line: 1
            Module '"A:/project/node_modules/rxjs/Observable"' has no exported member
            'Observable'.

       L1:  import { Observable } from 'rxjs/Observable';
       L2:  export interface PluginConfig {

[10:39:56]  typescript: ...project/node_modules/@ionic-native/core/plugin.d.ts, line: 1
            Module '"A:/project/node_modules/rxjs/Observable"' has no exported member
            'Observable'.

       L1:  import { Observable } from 'rxjs/Observable';
       L2:  import { CordovaOptions } from './decorators';

[10:39:56]  typescript: ...project/node_modules/ionic-angular/umd/components/input/input.d.ts, line: 3
            Module '"A:/project/node_modules/rxjs/Subject"' has no exported member
            'Subject'.

       L2:  import { NgControl } from '@angular/forms';
       L3:  import { Subject } from 'rxjs/Subject';
       L4:  import 'rxjs/add/operator/takeUntil';

[10:39:56]  typescript: ...project/node_modules/ionic-angular/umd/components/tabs/tabs.d.ts, line: 2
            Module '"A:/project/node_modules/rxjs/Subject"' has no exported member
            'Subject'.

       L1:  import { AfterViewInit, ElementRef, EventEmitter, Renderer, ViewContainerRef } from '@angular/core';
       L2:  import { Subject } from 'rxjs/Subject';
       L3:  import 'rxjs/add/operator/takeUntil';

[10:39:56]  typescript: A:/project/node_modules/rxjs/Observable.d.ts, line: 1
            Cannot find module 'rxjs-compat/Observable'.

       L1:  export * from 'rxjs-compat/Observable';

[10:39:56]  typescript: A:/project/node_modules/rxjs/Subject.d.ts, line: 1
            Cannot find module 'rxjs-compat/Subject'.

       L1:  export * from 'rxjs-compat/Subject';

I want to fix this properly but I've been breaking a lot of existing projects lately messing around while learning these building technologies...so... yarn add rxjs-compat 馃樃

Would this fix 'properly' if I installed the latest @ionic/angular (_disambiguation_ not ionic-angular?) or do I need to run yarn add for all latest versions of @ionic packages?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kyleap picture kyleap  路  4Comments

icchio picture icchio  路  3Comments

wwallace picture wwallace  路  4Comments

GunaSekhar1 picture GunaSekhar1  路  4Comments

goleary picture goleary  路  3Comments