ERROR in node_modules/@angular/flex-layout/core/typings/observable-media/observable-media.d.ts(1,22)
Just created a new project with CLI, added Material, etc. Then added flex-layout. Now this:
ERROR in node_modules/@angular/flex-layout/core/typings/observable-media/observable-media.d.ts(1,22): error TS2724: Module '"E:/Documents/repos/UrekiNgx/node_modules/rxjs/Rx"' has no exported member 'Subscribable'. Did you mean 'Subscriber'?
?
@Shukarity Note you have ^6.2.2 and not ~6.2.2 or just 6.2.2 you are probably still downloading (and therefore using 6.3.0) please review your package.json
Thanks! It worked
saw the same problem too.
ERROR in node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(25,15): error TS2416: Property 'registry' in type 'MockMatchMedia' is not assignable to the same property in base type 'MatchMedia'. Type 'Map<string, MockMediaQueryList>' is not assignable to type 'Map<string, MediaQueryList>'. Type 'MockMediaQueryList' is not assignable to type 'MediaQueryList'. Types of property 'removeListener' are incompatible. Type '(: EventListenerOrEventListenerObject) => void' is not assignable to type '(listener: MediaQueryListListener) => void'. Types of parameters '' and 'listener' are incompatible. Type 'MediaQueryListListener' is not assignable to type 'EventListenerOrEventListenerObject'. Type 'MediaQueryListListener' is not assignable to type 'EventListenerObject'. Property 'handleEvent' is missing in type 'MediaQueryListListener'. node_modules/@angular/flex-layout/core/typings/match-media/mock/mock-match-media.d.ts(82,5): error TS2416: Property 'removeListener' in type 'MockMediaQueryList' is not assignable to the same property in base type 'MediaQueryList'. Type '(: EventListenerOrEventListenerObject) => void' is not assignable to type '(listener: MediaQueryListListener) => void'. Types of parameters '_' and 'listener' are incompatible. Type 'MediaQueryListListener' is not assignable to type 'EventListenerOrEventListenerObject'. Type 'MediaQueryListListener' is not assignable to type 'EventListenerObject'.
My package.json:
"@angular/animations": "^6.1.10", "@angular/cdk": "^6.4.7", "@angular/common": "^6.1.0", "@angular/compiler": "^6.1.0", "@angular/core": "^6.1.0", "@angular/flex-layout": "^7.0.0-beta.19", "@angular/forms": "^6.1.0", "@angular/http": "^6.1.0", "@angular/material": "^6.4.7", "@angular/platform-browser": "^6.1.0", "@angular/platform-browser-dynamic": "^6.1.0", "@angular/router": "^6.1.0", "@types/date-fns": "^2.6.0", "core-js": "^2.5.4", "date-fns": "^1.29.0", "hammerjs": "^2.0.8", "node-sass": "^4.9.4", "rxjs": "~6.2.0", "zone.js": "~0.8.26"
@cici change the flexlayout version to ~6.2.2
Hello all I see this ticket is closed, but what is the final solution (if exists)? I have the flex-layout version 7, and the issue persists..
I am getting this error as well.
"@angular/flex-layout": "^5.0.0-beta.15", "rxjs": "^6.3.3", "rxjs-compat": "^6.4.0", "typescript": "~3.2.2"
This issue has been automatically locked due to inactivity. Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.