Components: Build Error: `@angular/material/material"' has no exported member`

Created on 10 Oct 2017  路  17Comments  路  Source: angular/components

Bug, feature request, or proposal:

Build is crashing

What is the expected behavior?

Webpack is able to correctly import Material2 modules

What is the current behavior?

Webpack is not finding the export definitions

What are the steps to reproduce?

Not sure how to show it, but this occurred after doing a yarn/npm update.

Which versions of Angular, Material, OS, TypeScript, browsers are affected?

$ ng version
@angular/cli: 1.4.5
node: 7.2.1
os: win32 x64
@angular/animations: 4.4.4
@angular/cdk: 2.0.0-beta.12
@angular/common: 4.4.4
@angular/compiler: 4.4.4
@angular/core: 4.4.4
@angular/flex-layout: 2.0.0-beta.9-c3c7151
@angular/forms: 4.4.4
@angular/http: 4.4.4
@angular/material: 2.0.0-beta.12-7fe1b81
@angular/platform-browser: 4.4.4
@angular/platform-browser-dynamic: 4.4.4
@angular/router: 4.4.4
@angular/cli: 1.4.5
@angular/compiler-cli: 4.4.4
@angular/language-service: 4.4.4
typescript: 2.5.3

Is there anything else we should know?

It's the same symptoms #4521 shows. However the resolution there seemed to be updating to the latest build, which I've done and may have caused this issue to begin with.

Here is the stacktrace output:

Date: 2017-10-10T18:06:23.412Z
Hash: 23a3fb495d1cd162281d
Time: 5726ms
chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered]
chunk {main} main.bundle.js, main.bundle.js.map (main) 1.06 kB {vendor} [initial] [rendered]
chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 323 bytes {inline} [initial] [rendered]
chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 66.5 kB {inline} [initial] [rendered]
chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 338 kB [initial] [rendered]

ERROR in <APP_PATH> (13,44): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdNativeDateModule'.
ERROR in <APP_PATH>/src/app/components/<MY_COMPONENT> (8,10): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSliderChange'.
ERROR in <APP_PATH>/src/app/components/<MY_COMPONENT> (8,10): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MD_DIALOG_DATA'.
ERROR in <APP_PATH>/src/app/components/<MY_COMPONENT> (8,26): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in <APP_PATH> (11,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdButtonModule'.
ERROR in <APP_PATH> (11,19): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdCheckboxModule'.
ERROR in <APP_PATH> (11,37): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdToolbarModule'.
ERROR in <APP_PATH> (11,54): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdIconModule'.
ERROR in <APP_PATH> (11,68): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdCardModule'.
ERROR in <APP_PATH> (11,82): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdMenuModule'.
ERROR in <APP_PATH> (11,96): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdInputModule'.
ERROR in <APP_PATH> (12,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSidenavModule'.
ERROR in <APP_PATH> (12,20): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdRippleModule'.
ERROR in <APP_PATH> (12,36): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdRadioModule'.
ERROR in <APP_PATH> (12,51): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSliderModule'.
ERROR in <APP_PATH> (12,67): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdFormFieldModule'.
ERROR in <APP_PATH> (12,86): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSelectModule'.
ERROR in <APP_PATH> (13,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSlideToggleModule'.
ERROR in <APP_PATH> (13,24): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdDatepickerModule'.
ERROR in <APP_PATH>/src/app/components/<MY_COMPONENT> (8,26): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in <APP_PATH> (13,64): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdAutocompleteModule'.
ERROR in <APP_PATH> (13,86): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdDialogModule'.
ERROR in <APP_PATH> (14,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdProgressBarModule'.
ERROR in <APP_PATH>/src/app/components/<MY_COMPONENT> (5,10): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSlideToggleChange'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdButtonModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,19): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdCheckboxModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,37): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdToolbarModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,54): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdIconModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,68): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdCardModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,82): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdMenuModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (2,96): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdInputModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,3): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSidenavModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,20): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdRippleModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,36): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdRadioModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,51): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSliderModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,67): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSelectModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,83): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdSlideToggleModule'.
ERROR in <APP_PATH>/src/app/components/components-test.module.ts (3,104): Module '"<APP_PATH>/node_modules/@angular/material/material"' has no exported member 'MdFormFieldModule'.
ERROR in Error: MdButtonModule is not an NgModule
    at _getNgModuleMetadata (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:140:15)
    at _extractLazyRoutesFromStaticModule (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:109:26)
    at <APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27
    at Array.reduce (native)
    at _extractLazyRoutesFromStaticModule (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10)
    at <APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27
    at Array.reduce (native)
    at _extractLazyRoutesFromStaticModule (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10)
    at <APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27
    at Array.reduce (native)
    at _extractLazyRoutesFromStaticModule (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:128:10)
    at Object.listLazyRoutesOfModule (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_impl.js:53:22)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (<APP_PATH>\node_modules\@angular\compiler-cli\src\ngtools_api.js:91:39)
    at AotPlugin._getLazyRoutesFromNgtools (<APP_PATH>\node_modules\@ngtools\webpack\src\plugin.js:207:44)
    at _donePromise.Promise.resolve.then.then.then.then.then (<APP_PATH>\node_modules\@ngtools\webpack\src\plugin.js:443:24)
    at process._tickCallback (internal/process/next_tick.js:103:7)

webpack: Failed to compile.

Most helpful comment

@devsull replace Md* with Mat* (see deprecation here)

All 17 comments

Updating the to the latest @angular/material made this error appear for me too!.. Anyone have any ideas why the node module resolution isn't working quite right?

Did you both make the change from Md to Mat? If so, I've occasionally seen this before and it was always solved by blowing away node_modules and reinstalling.

I'm only using MdModules AFAIK... Here's the import statement for the MdModules that are in my app.module.ts:
import { MdProgressBarModule, MdTableModule, MdPaginatorModule, MdSortModule } from "@angular/material";
I've tried deleting my node_modules folder and installing again, but I'll get this error when trying to build with the angular cli.

@devsull replace Md* with Mat* (see deprecation here)

Ah, I see. I actually updated my versions to troubleshoot what was happening on our CI server, and I didn't realize the module names have been renamed. That must be the issue then.

Thanks @willshowell

@willshowell Thank you for the help, that fixed it!

i just updated my app from"@angular/material": "^2.0.0-beta.11" to "@angular/material": "^2.0.0-beta.12",,

And i have this errors :) LOLS Is gona take me sow long manualy to change all this stuff.

Wish me good luck

ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-all-pharmacists/admin-all-pharmacists.component.
ts (3,36): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdD
ialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/interfaces.d.ts (12,32): Namespace 'firebase' has no e
xported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/interfaces.d.ts (14,35): Namespace 'firebase' has no e
xported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/interfaces.d.ts (15,44): Namespace 'firebase' has no e
xported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/app/firebase.app.module.d.ts (12,28): Namespace 'fireb
ase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_list_observable.d.ts (14,62): Namesp
ace 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_list_observable.d.ts (15,48): Namesp
ace 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_list_observable.d.ts (16,92): Namesp
ace 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_object_observable.d.ts (11,31): Name
space 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_object_observable.d.ts (12,37): Name
space 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/database/firebase_object_observable.d.ts (13,24): Name
space 'firebase' has no exported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Partials/custom-snackbar/custom-snackbar.component.ts (2,10): Module '"C
:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/mediator.service.ts (3,10): Module '"C:/Users/Developer/Documen
ts/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/api.service.ts (13,10): Module '"C:/Users/Developer/Documents/G
OOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/Pharmacists/api-pharmacists.service.ts (6,10): Module '"C:/User
s/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/firebase.service.ts (14,10): Module '"C:/Users/Developer/Docume
nts/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/auth.service.ts (6,10): Module '"C:/Users/Developer/Documents/G
OOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Services/Agents/api-agents.service.ts (11,10): Module '"C:/Users/Develop
er/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdSnackBar'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/PRODUCTS/all-products/all-products.component.ts (3,10): Module '"C
:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/PRODUCTS/all-products/all-products.component.ts (3,26): Module '"C
:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/PRODUCTS/all-products/all-products.component.ts (3,36): Module '"C
:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/dial-add-category/dial-add-category.component.ts (2,10)
: Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'
.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/dial-edit-category/dial-edit-category.component.ts (2,1
0): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRe
f'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/dial-delete-category/dial-delete-category.component.ts
(2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDial
ogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/admin-categories/admin-categories.component.ts (3,10):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry
'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/admin-categories/admin-categories.component.ts (3,26):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/CATEGORIES/admin-categories/admin-categories.component.ts (3,36):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/ADMIN-PARTS/dial-add-prod-parts/dial-add-prod-parts.component.ts (
2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialo
gRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/ADMIN-PARTS/dial-edit-prod-parts/dial-edit-prod-parts.component.ts
 (2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDia
logRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/ADMIN-PARTS/dial-del-prod-parts/dial-del-prod-parts.component.ts (
2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialo
gRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/BRANDS/admin-brands/admin-brands.component.ts (3,10): Module '"C:/
Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/BRANDS/admin-brands/admin-brands.component.ts (3,26): Module '"C:/
Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/BRANDS/admin-brands/admin-brands.component.ts (3,36): Module '"C:/
Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/NEEDS/admin-needs/admin-needs.component.ts (3,10): Module '"C:/Use
rs/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/NEEDS/admin-needs/admin-needs.component.ts (3,26): Module '"C:/Use
rs/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/NEEDS/admin-needs/admin-needs.component.ts (3,36): Module '"C:/Use
rs/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/AGE-GROUPS/admin-age-groups/admin-age-groups.component.ts (3,10):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry
'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/AGE-GROUPS/admin-age-groups/admin-age-groups.component.ts (3,26):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/AGE-GROUPS/admin-age-groups/admin-age-groups.component.ts (3,36):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/dial-delete-pharmacist/dial-delete-pharmacist.componen
t.ts (2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'M
dDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-all-pharmacists/admin-all-pharmacists.component.
ts (3,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdI
conRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-all-pharmacists/admin-all-pharmacists.component.
ts (3,26): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdD
ialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/angularfire2/interfaces.d.ts (13,35): Namespace 'firebase' has no e
xported member 'Promise'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-add-pharmacist/admin-add-pharmacist.component.ts
 (7,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIco
nRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-add-pharmacist/admin-add-pharmacist.component.ts
 (7,26): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDia
log'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-add-pharmacist/admin-add-pharmacist.component.ts
 (7,36): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDia
logRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-edit-pharmacist/admin-edit-pharmacist.component.
ts (7,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdI
conRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-edit-pharmacist/admin-edit-pharmacist.component.
ts (7,26): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdD
ialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Pharmacists/admin-edit-pharmacist/admin-edit-pharmacist.component.
ts (7,36): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdD
ialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/dial-add-new-agent/dial-add-new-agent.component.ts (2,10): M
odule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/dial-edit-agent/dial-edit-agent.component.ts (2,10): Module
'"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/dial-delete-agent/dial-delete-agent.component.ts (2,10): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/admin-all-agents/admin-all-agents.component.ts (3,10): Modul
e '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/admin-all-agents/admin-all-agents.component.ts (3,26): Modul
e '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Users/admin-all-agents/admin-all-agents.component.ts (3,36): Modul
e '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Requests/admin-all-requests/admin-all-requests.component.ts (3,10)
: Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegist
ry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Requests/admin-all-requests/admin-all-requests.component.ts (3,26)
: Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/Requests/admin-all-requests/admin-all-requests.component.ts (3,36)
: Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'
.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/OFFERS/all-offers/all-offers.component.ts (3,10): Module '"C:/User
s/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/OFFERS/all-offers/all-offers.component.ts (3,26): Module '"C:/User
s/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/OFFERS/all-offers/all-offers.component.ts (3,36): Module '"C:/User
s/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Pharmacist/pharmacist-settings/pharmacist-settings.component.ts (8,10):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdInputModule'
.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Pharmacist/pharmacist-create-offer/pharmacist-create-offer.component.ts
(8,9): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdInput
Module'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Pharmacist/pharmacist-edit-offer/pharmacist-edit-offer.component.ts (8,9
): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdInputModu
le'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Partials/dial-login/dial-login.component.ts (2,10): Module '"C:/Users/De
veloper/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/client-product-offers/client-product-offers.component.ts (4,10):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry
'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/client-product-offers/client-product-offers.component.ts (4,26):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/client-product-offers/client-product-offers.component.ts (4,36):
Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Admin/ADMIN-PARTS/admin-nav-menu-left/admin-nav-menu-left.component.ts (
4,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconR
egistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Partials/dial-register/dial-register.component.ts (2,10): Module '"C:/Us
ers/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Customer/customer-parts/dial-create-customer/dial-create-customer.compon
ent.ts (2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member
'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-header/client-header.component.ts (5,10): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-header/client-header.component.ts (5,26): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-header/client-header.component.ts (5,36): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Partials/dial-login-pharmacist/dial-login-pharmacist.component.ts (2,10)
: Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'
.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Partials/dial-register-pharmacist/dial-register-pharmacist.component.ts
(2,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDial
ogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-footer/client-footer.component.ts (5,10): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconRegistry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-footer/client-footer.component.ts (5,26): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Client/CLIENT-PARTS/client-footer/client-footer.component.ts (5,36): Mod
ule '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogRef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Customer/customer-parts/customer-header/customer-header.component.ts (5,
10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdIconReg
istry'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Customer/customer-parts/customer-header/customer-header.component.ts (5,
26): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialog'
.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/Customer/customer-parts/customer-header/customer-header.component.ts (5,
36): Module '"C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MdDialogR
ef'.
ERROR in C:/Users/Developer/Documents/GOOGLE_CLOUD/ATLABIZ/DND-java-angular4/FRONTEND/src/app/app.module.ts (22,10): Module '"C:/Users/Developer/Documents/GOOGLE_CLOU
D/ATLABIZ/DND-java-angular4/FRONTEND/node_modules/@angular/material/material"' has no exported member 'MaterialModule'.
ERROR in Error: MaterialModule is not an NgModule
    at _getNgModuleMetadata (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-cli\src\ngtools_impl.js:140:1
5)
    at _extractLazyRoutesFromStaticModule (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-cli\src\ngtools
_impl.js:109:26)
    at C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-cli\src\ngtools_impl.js:129:27
    at Array.reduce (<anonymous>)
    at _extractLazyRoutesFromStaticModule (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-cli\src\ngtools
_impl.js:128:10)
    at Object.listLazyRoutesOfModule (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-cli\src\ngtools_impl
.js:53:22)
    at Function.NgTools_InternalApi_NG_2.listLazyRoutes (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@angular\compiler-c
li\src\ngtools_api.js:91:39)
    at AotPlugin._getLazyRoutesFromNgtools (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@ngtools\webpack\src\plugin.js:2
12:44)
    at _donePromise.Promise.resolve.then.then.then.then.then (C:\Users\Developer\Documents\GOOGLE_CLOUD\ATLABIZ\DND-java-angular4\FRONTEND\node_modules\@ngtools\webpa
ck\src\plugin.js:448:24)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)

webpack: Failed to compile.

@denver-HJS @atlabiz In "@angular/material": "^2.0.0-beta.12" Every Md tag has been replaced by Mat so to use it need to change tags
import { MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatExpansionModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatNativeDateModule, MatPaginatorModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatRippleModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule } from '@angular/material';

@NgModule({ imports: [ MatAutocompleteModule, MatButtonModule, MatButtonToggleModule, MatCardModule, MatCheckboxModule, MatChipsModule, MatDatepickerModule, MatDialogModule, MatExpansionModule, MatGridListModule, MatIconModule, MatInputModule, MatListModule, MatMenuModule, MatNativeDateModule, MatPaginatorModule, MatProgressBarModule, MatProgressSpinnerModule, MatRadioModule, MatRippleModule, MatSelectModule, MatSidenavModule, MatSliderModule, MatSlideToggleModule, MatSnackBarModule, MatSortModule, MatTableModule, MatTabsModule, MatToolbarModule, MatTooltipModule, ] })

Thanks, @willshowell!

@willshowell It seems to work for the Md*, but what should we replace MaterialModule with ? I have some MaterialModule.forRoot() here and there.

@d-damien MaterialModule has been deprecated for a while. Instead you should import just the modules you need. Alternatively you can create you own wrapper module that exports all the material modules you need and use that throughout your app in place of MaterialModule.

@willshowell Just removing MaterialModule seems to work indeed thanks. But I still have critical errors with Tooltip directives. MatTooltipModule is included and imported in relevant module, but use of [matTooltip] is refused :
Can't bind to 'matTooltip' since it isn't a known property of 'button'

Either on native components like button or angular ones like mat-select. I'm in beta.12 too.

npm update
npm i -g npm
helps me

+1
As the changes been done after beta 2.0.11, I have download earlier version but still, it is showing no exported method.

Mi solution: I use Angular Material 5.2.5

import { NgModule } from '@angular/core';
import { CommonModule }   from '@angular/common';
import {DateAdapter, MatRippleModule, MAT_DATE_LOCALE} from '@angular/material';
import {
  MatAutocompleteModule,
  MatButtonModule,
  MatButtonToggleModule,
  MatCardModule,
  MatCheckboxModule,
  MatChipsModule,
  MatDatepickerModule,
  MatDialogModule,
  MatExpansionModule,
  MatFormFieldModule,
  MatGridListModule,
  MatIconModule,
  MatInputModule,
  MatListModule,
  MatMenuModule,
  MatPaginatorModule,
  MatProgressBarModule,
  MatProgressSpinnerModule,
  MatRadioModule,
  MatSelectModule,
  MatSidenavModule,
  MatSliderModule,
  MatSlideToggleModule,
  MatSnackBarModule,
  MatSortModule,
  MatTableModule,
  MatTabsModule,
  MatToolbarModule,
  MatTooltipModule,
  MatStepperModule,
  MatNativeDateModule,
  MAT_DATE_FORMATS
} from '@angular/material';
import {dateAdapterOta, MY_DATE_FORMATS } from './../adapters/dateAdapterOta';

@NgModule({
      exports: [
        MatAutocompleteModule,
        MatButtonModule,
        MatButtonToggleModule,
        MatCardModule,
        MatCheckboxModule,
        MatChipsModule,
        MatTableModule,
        MatDatepickerModule,
        MatDialogModule,
        MatExpansionModule,
        MatFormFieldModule,
        MatGridListModule,
        MatIconModule,
        MatInputModule,
        MatListModule,
        MatMenuModule,
        MatPaginatorModule,
        MatProgressBarModule,
        MatProgressSpinnerModule,
        MatRadioModule,
        MatRippleModule,
        MatSelectModule,
        MatSidenavModule,
        MatSlideToggleModule,
        MatSliderModule,
        MatSnackBarModule,
        MatSortModule,
        MatStepperModule,
        MatTabsModule,
        MatToolbarModule,
        MatTooltipModule,
        MatNativeDateModule
      ],
      providers:[
        {provide: DateAdapter, useClass: dateAdapterOta},
        {provide: MAT_DATE_FORMATS, useValue: MY_DATE_FORMATS}
      ]
})
export class AngularMaterialModule {}

in app.module.ts add

import { AngularMaterialModule } from './shared/angular-material/angular-material.module';

//a帽ades el modulo de material
import: [
AngularMaterialModule,
]

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._

Was this page helpful?
0 / 5 - 0 ratings

Related issues

3mp3ri0r picture 3mp3ri0r  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments

RoxKilly picture RoxKilly  路  3Comments

jelbourn picture jelbourn  路  3Comments

dzrust picture dzrust  路  3Comments