Closed ranouf closed 7 years ago
md-card
is a material component. https://material.angular.io/components
You need to import their modules also.
Thanks. app.module.client: import { MaterialModule, MdCardModule, MdAutocompleteModule, MdButtonModule, MdButtonToggleModule, MdCheckboxModule, MdChipsModule, MdCoreModule, MdDatepickerModule, MdDialogModule, MdGridListModule, MdIconModule, MdInputModule, MdListModule, MdMenuModule, MdNativeDateModule, MdProgressBarModule, MdRadioModule, MdRippleModule, MdSelectionModule, MdSelectModule, MdSidenavModule, MdSliderModule, MdSlideToggleModule, MdSnackBarModule, MdTabsModule, MdToolbarModule, MdTooltipModule, NativeDateModule, PlatformModule, StyleModule, } from '@angular/material';
imports: [ MaterialModule, MdCardModule, MdAutocompleteModule, MdButtonModule, MdButtonToggleModule, MdCheckboxModule, MdChipsModule, MdCoreModule, MdDatepickerModule, MdDialogModule, MdGridListModule, MdIconModule, MdInputModule, MdListModule, MdMenuModule, MdNativeDateModule, MdProgressBarModule, MdRadioModule, MdRippleModule, MdSelectionModule, MdSelectModule, MdSidenavModule, MdSliderModule, MdSlideToggleModule, MdSnackBarModule, MdTabsModule, MdToolbarModule, MdTooltipModule, NativeDateModule, PlatformModule, StyleModule, ]
Still the same error: If 'md-card-content' is an Angular component, then verify that it is part of this module.
Do you have an idea?
is the issue solved? @ranouf
Yes, but I dont remember how I did it. sorry for the next one who will need an answer :(
Having same issue in my package.json I have "@angular/material": "^2.0.0-beta.6", and I am getting on npm i unmet error: UNMET PEER DEPENDENCY @angular/material@2.0.0-beta.6 +-- @covalent/dynamic-forms@1.0.0-beta.4 | `-- UNMET PEER DEPENDENCY @angular/material@2.0.0-beta.5 +-- @covalent/highlight@1.0.0-beta.4
Hi,
My app is based on : npm install -g yo generator-aspnetcore-spa
Then I removed Bootstrap and now I try to install Angular Material + Covalent
This is my packages.json
In app.module.client, I added: import { MaterialModule } from '@angular/material'; import { CovalentCoreModule } from '@covalent/core';
@NgModule({ bootstrap: sharedConfig.bootstrap, declarations: sharedConfig.declarations, imports: [ //... CovalentCoreModule.forRoot(), //...
}) export class AppModule { }
CovalentCoreModule is not available anymore, what is the workaround to make it work?
I tried by adding all the module available: CovalentChipsModule, CovalentCommonModule, CovalentDataTableModule, CovalentDialogsModule, CovalentExpansionPanelModule, CovalentFileModule, CovalentJsonFormatterModule, CovalentLayoutModule, CovalentLoadingModule, CovalentMediaModule, CovalentMenuModule, CovalentMessageModule, CovalentNotificationsModule, CovalentPagingModule, CovalentSearchModule, CovalentStepsModule,
But I still have an error: If 'md-card-content' is an Angular component, then verify that it is part of this module.
What do you suggest?