Flex-layout: I have this error -> has no exported member 'OpaqueToken'.

Created on 20 Dec 2017  路  3Comments  路  Source: angular/flex-layout

ERROR in node_modules/@angular/flex-layout/media-query/breakpoints/break-points.d.ts(8,10): error TS2305: Module '"D:/Dev/site/node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

  • Last FlexLayout version.
  • Last Angular & CLI version.

Most helpful comment

@mhosman - Try this:

  • npm uninstall @angular/flex-layout
  • delete your node_modules
  • npm install
  • npm install @angular/flex-layout --save

Then rebuild...

All 3 comments

@mhosman - Try this:

  • npm uninstall @angular/flex-layout
  • delete your node_modules
  • npm install
  • npm install @angular/flex-layout --save

Then rebuild...

It's not working with latest again it seems with below dependencies

"dependencies": { "@angular/animations": "^5.2.3", "@angular/cdk": "^5.1.1", "@angular/common": "^5.2.0", "@angular/compiler": "^5.2.0", "@angular/core": "^5.2.0", "@angular/flex-layout": "^2.0.0-rc.1", "@angular/forms": "^5.2.0", "@angular/http": "^5.2.0", "@angular/material": "^5.1.1", "@angular/platform-browser": "^5.2.0", "@angular/platform-browser-dynamic": "^5.2.0", "@angular/router": "^5.2.0", "@angular/service-worker": "^5.2.0", "core-js": "^2.4.1", "hammerjs": "^2.0.8", "karma": "^2.0.0", "karma-chrome-launcher": "^2.2.0", "karma-coverage-istanbul-reporter": "^1.4.1", "karma-jasmine": "^1.1.1", "karma-jasmine-html-reporter": "^0.2.2", "ngx-carousel": "^1.3.5", "rxjs": "^5.5.6", "source-map": "^0.7.0", "zone.js": "^0.8.19" }

You have incorrectly installed rc.1. See Dec 21 notes above.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spottedmahn picture spottedmahn  路  5Comments

mackelito picture mackelito  路  4Comments

Kizmar picture Kizmar  路  4Comments

MarcusMorba picture MarcusMorba  路  3Comments

WilhelmOlejnik picture WilhelmOlejnik  路  4Comments