components: export 'ProjectionModule' was not found in './core/index'

First and foremost, thank you so much for the Beta release - Material2 is shaping up to be really really great.

After updating to beta.1, I’m getting following console.warnings in the browser:

/~/@angular/material/module.js 89:16 export 'ProjectionModule' was not found in './core/index'
./~/@angular/material/dialog/index.js 21:75 export 'Platform' was not found in '../core'
./~/@angular/material/dialog/index.js 21:75 export 'Platform' was not found in '../core'

I tried to do a clean install of everything, to no avail.

My environment:

Angular: 4.0.0-beta.1 Webpack: 2.1.0-beta.22

Cheers, guys - and merry Xmas everybody

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Comments: 19 (8 by maintainers)

Most upvoted comments

@spock123 Awesome! Yeah happy new year to you as well!

@DevVersion I’m on it, thanks for the heads up! Stay tuned 😃

Update: oh well Webpack 2.2.x broke a lot of stuff in my build, trying to resolve… probably the webpack-dev-server…

Update2: Webpack breaks so much that I can’t get it to work with my loaders, plugins etc… it’s really a mess how the 2.2 configuration changes all the time (I understand the reasons - good reasons), just not easy to get a configuration that doesn’t throw tons of errors…

@spock123 Can you try the following:

  • import { MaterialModule } from '@angular/material/bundles/material.umd.js';

This is very similar to the Webpack alias but it might be worth trying it out.