import {MaterialModule, MdDatepickerModule, MdNativeDateModule } from '@angular/material';
Not sure when I included this that it is missing when I did npm install.
in the app.module.ts I am also getting MaterialModule has no exported member.
MaterialModule was removed as of 2.0.beta-11 as seen in the changelog
Thanks Joey. I will try to make this change to my project
On Sep 28, 2017 5:37 PM, "Joey Perrott" notifications@github.com wrote:
MaterialModule was removed as of 2.0.beta-11 as seen in the changelog
https://github.com/angular/material2/blob/master/CHANGELOG.md#breaking-changes—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/angular/material2/issues/7398#issuecomment-332970978,
or mute the thread
https://github.com/notifications/unsubscribe-auth/ADu4o2JWmj5XdaBMVwUZgg8o2ePmdQsCks5snBGKgaJpZM4Pn6Wc
.
for anyone else look at the node module references has changed also. Thanks works great.
@Sevensnake what exactly was the change that you made?
@MattVoda I do is, what I think is documented somewhere...: I create a MyMaterialModule within my project which imports and re-exports every Module I need from @angular/material. Like so:
import { NgModule } from '@angular/core';
import {
MatButtonModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule
// and so on...
} from "@angular/material";
const MAT_MODULES = [
MatButtonModule,
MatCardModule,
MatCheckboxModule,
MatChipsModule
// and so on...
];
@NgModule({
imports: MAT_MODULES,
exports: MAT_MODULES,
declarations: []
})
export class MyMaterialModule { }
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
_This action has been performed automatically by a bot._
Most helpful comment
@MattVoda I do is, what I think is documented somewhere...: I create a MyMaterialModule within my project which imports and re-exports every Module I need from @angular/material. Like so: