1

using angular material 2 in webpack and the tab css is not working

using angular material autocomplete and throws this error , and this error disappears if i remove the lazy loading

Is there any configurations for webpack to make the material working properly?

FAISAL
  • 33,618
  • 10
  • 97
  • 105
Ayz Pat
  • 135
  • 3
  • 10
  • a u using angular-cli? did u check that https://material.angular.io/guides ? – angularrocks.com Apr 01 '17 at 06:18
  • @Kuncevic I am using this starter webpack from github i have just cloned it and working on it... --> https://github.com/AngularClass/angular2-webpack-starter and I have referred that guide on material.angular.io/guides – Ayz Pat Apr 01 '17 at 06:55
  • For your second image, here's an issue which was similar to the error: https://github.com/angular/material2/issues/3176 – Edric Apr 01 '17 at 14:08
  • And what version of `@angular/material` are you using? – Edric Apr 01 '17 at 14:08
  • @Edric I am using the version ^2.0.0-beta.2 – Ayz Pat Apr 01 '17 at 15:05
  • @Edric how to overcome that second error of originX , I read that but what if I need to add that component in my production app, hw can i overcome it now.. – Ayz Pat Apr 01 '17 at 15:06
  • @AyzPat Post your working plunkr here if you have it... it could be helpful. Have you screen scraped any of your relevant code? For people to compare... such as how you're providing the Material Module for each item you're needing to use on the Component and in the AppModule. What build system you're using may also be important... CLI? Seed? Webpack? Also, how are you getting the CSS into the app? Are you including it in the index.html, or what? – Jarvis Apr 03 '17 at 06:40
  • @Jarvis I am installing it through npm and using webpack , following the same code as in the angular material website for the components.. – Ayz Pat Apr 04 '17 at 17:48

0 Answers0