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

Created on 21 Nov 2017  路  7Comments  路  Source: angular/flex-layout

ERROR in node_modules/@angular/flex-layout/media-query/breakpoints/break-points.d.ts(8,10): error TS2305: Module '"C:/Users/George35mk/Documents/PROGRAMMING/GitHub/GEORGE35MK/November 2017/Python-api-Angular-5/FRONTEND/node_modules/@angular/core/core"' has no exported member 'OpaqueToken'.

Most helpful comment

try this command npm i --save @angular/[email protected]

All 7 comments

try this command npm i --save @angular/[email protected]

similar issue and solution here https://github.com/angular/flex-layout/issues/494#issuecomment-343355178

npm i --save @angular/[email protected] >>>> its not working for me , i have used ngx-s3-upload component .

This sounds like an incorrect version of angular + flex-layout.

  • remove your node-modules directory,
  • remove the @angular/flex-layout entry in your package.json
  • then run terminal npm i; npm i @angular/flex-layout

Seems there's a (newish) rc-1 out that breaks this whereas it was ok in the -beta.10 pre-release.
maybe this will be fixed in rc-2 ?

I am having this issue with beta.11 but not with beta.10-4905443.

Was this page helpful?
0 / 5 - 0 ratings