Following errors appears after upgrading


#1

I only used update command to upgrade project dependencies , the following error happens to me.

Typescript Error
Class 'Nav' incorrectly extends base class 'NavControllerBase'. Types of property 'goToRoot' are incompatible. Type '(opts: NavOptions) => Promise<any>' is not assignable to type '(opts: NavOptions) => Promise<never>'. Type 'Promise<any>' is not assignable to type 'Promise<never>'. Type 'any' is not assignable to type 'never'.
e:/apps/node_modules/ionic-angular/components/nav/nav.d.ts
 */
export declare class Nav extends NavControllerBase implements AfterViewInit, RootNode, INav {
    private _root;
Typescript Error
Class 'Tab' incorrectly extends base class 'NavControllerBase'. Types of property 'goToRoot' are incompatible. Type '(opts: NavOptions) => Promise<any>' is not assignable to type '(opts: NavOptions) => Promise<never>'. Type 'Promise<any>' is not assignable to type 'Promise<never>'.
e:/apps/node_modules/ionic-angular/components/tabs/tab.d.ts
 */
export declare class Tab extends NavControllerBase implements ITab {
    private _cd;
Typescript Error
Type 'IterableDiffer' is not generic.
...r_abber/node_modules/ionic-angular/components/virtual-scroll/virtual-scroll.d.ts
private _dom;
_differ: IterableDiffer<any>;
_scrollSub: any;
Typescript Error
Class 'Subject<T>' incorrectly extends base class 'Observable<T>'. Types of property 'lift' are incompatible. Type '<T, R>(operator: Operator<T, R>) => Observable<T>' is not assignable to type '<R>(operator: Operator<T, R>) => Observable<R>'. Type 'Observable<T>' is not assignable to type 'Observable<R>'. Type 'T' is not assignable to type 'R'.
e:/apps/node_modules/rxjs/Subject.d.ts
 */
export declare class Subject<T> extends Observable<T> implements ISubscription {
    observers: Observer<T>[];
Typescript Error
Class 'WebSocketSubject<T>' incorrectly extends base class 'AnonymousSubject<T>'. Types of property 'lift' are incompatible. Type '<R>(operator: Operator<T, R>) => WebSocketSubject<R>' is not assignable to type '<T, R>(operator: Operator<T, R>) => Observable<T>'. Type 'WebSocketSubject<R>' is not assignable to type 'Observable<T>'. Types of property 'operator' are incompatible. Type 'Operator<any, R>' is not assignable to type 'Operator<any, T>'. Type 'R' is not assignable to type 'T'.
e:/apps/node_modules/rxjs/observable/dom/WebSocketSubject.d.ts
 */
export declare class WebSocketSubject<T> extends AnonymousSubject<T> {
    url: string;

Ionic Framework: ^3.5.0
Ionic Native: 2.9.0
Ionic App Scripts: 1.3.12
Angular Core: 4.2.5
Angular Compiler CLI: 4.2.5
Node: 8.0.0
OS Platform: Windows 10
Navigator Platform: Win32
User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/59.0.3071.115 Safari/537.36


#2

Hi,

I believe you have updated TypeScript too in your dependencies.
Here is a similar quoestion answered: 3.5.0 breaks when building


#3

I got this error on MacOS Sierra after updating this morning. Then I was unable to install TypeScript 2.3.4 (I had 2.4.0 installed) because “npm install typescript@2.3.4” kept saying “typescript@2.3.4: invalid”. I had to upgrade node from 6.x to 8.1.3 and then it worked. Then I also had to do “npm rebuild node-sass --force” to rebuild it for node 8.1.3 before it would actually run.