Covalent: OverlayState was not found in @angular/cdk/overlay

Created on 23 Sep 2017  路  7Comments  路  Source: Teradata/covalent

When using Angular Material beta 11 a project with Covalent Beta 7 compiles with a warning:

WARNING in ./node_modules/@covalent/core/loading/services/loading.factory.js 127:24-36 "export 'OverlayState' was not found in '@angular/cdk/overlay'

This is due to a breaking change on Angular Material beta 11: https://github.com/angular/material2/blob/master/CHANGELOG.md#breaking-changes

overlay: OverlayState has been renamed to OverlayConfig

Most helpful comment

Covalent depends on beta10 of material, dont update to 11 yet

All 7 comments

Covalent depends on beta10 of material, dont update to 11 yet

Actually never mind my last comment - the problem was something totally different :)

what was the solution - I have the same problem

@pabloxn if you are only using angular and material without Covalent - make sure that your dependencies in package.json are up to-date:

    "@angular/cdk": "^2.0.0-beta.11",
    "@angular/material": "^2.0.0-beta.11",

In my case I forgot to update the @angular/material package which resolved in the exception above.

If you are using Covalent then @jotatoledo already stated that Covalent's dependencies require beta10. :)

Yup, we will support beta.11 soon 馃槃 https://github.com/Teradata/covalent/pull/890

https://github.com/Teradata/covalent/pull/890 has been merged, you can start testing if you install the nightly-build, and we are gonna release as soon as we do a last set of tests

Was this page helpful?
0 / 5 - 0 ratings

Related issues

d3viant0ne picture d3viant0ne  路  3Comments

jengstrm picture jengstrm  路  5Comments

gozeon picture gozeon  路  4Comments

mailok picture mailok  路  3Comments

emoralesb05 picture emoralesb05  路  4Comments