Components: Module x has no exported member

Created on 8 Oct 2017  路  5Comments  路  Source: angular/components

Bug, feature request, or proposal:

Bug

What is the expected behavior?

Don't fail build

What is the current behavior?

Can't build the app - material beta.10

usingng build:

Error:

ERROR in project

-dashboard/src/main/frontend/src/app/admin/applications/applications.module.ts (
12,9): Module '"C:/Users/eelnasi/Workspaces/asr1k/emb/integration/sd_avc_dca/con
troller-dashboard/src/main/frontend/node_modules/@angular/material/material"' ha
s no exported member 'MdTableModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/core/toast.service.ts (2,9): Module '"C:/Us
ers/eelnasi/Workspaces/asr1k/emb/integration/sd_avc_dca/controller-dashboard/src
/main/frontend/node_modules/@angular/material/material"' has no exported member
'MdSnackBar'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (4,27): Module '"C:
project/
src/main/frontend/node_modules/@angular/material/material"' has no exported memb
er 'MdButtonModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (4,43): Module '"C:
project/
src/main/frontend/node_modules/@angular/material/material"' has no exported memb
er 'MdInputModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (5,3): Module '"C:/
Users/eelnasi/Workspaces/asr1k/emb/integration/sd_avc_dca/controller-dashboard/s
rc/main/frontend/node_modules/@angular/material/material"' has no exported membe
r 'MdCardModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (5,17): Module '"C:
project/
src/main/frontend/node_modules/@angular/material/material"' has no exported memb
er 'MdSnackBarModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (6,4): Module '"C:/
Users/eelnasi/Workspaces/asr1k/emb/integration/sd_avc_dca/controller-dashboard/s
rc/main/frontend/node_modules/@angular/material/material"' has no exported membe
r 'MdMenuModule'.
ERROR in project
-dashboard/src/main/frontend/src/app/shared/shared.module.ts (6,18): Module '"C:
project/
src/main/frontend/node_modules/@angular/material/material"' has no exported memb
er 'MdIconModule'.

.. etc for the rest of the material modules i'm using

What are the steps to reproduce?

run npm install

What is the use-case or motivation for changing an existing behavior?

Build fix

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

Angular 5 beta 7
Material beta.10
Typescript 2.4.2

Is there anything else we should know?

Tried to remove @angular/material and npm install

Most helpful comment

The Md* prefixed classes have been renamed to Mat* (see the beta.11 docs). There's a tool to help you migrate to the new prefixes.

All 5 comments

The Md* prefixed classes have been renamed to Mat* (see the beta.11 docs). There's a tool to help you migrate to the new prefixes.

Hi @crisbeto, In my issues I wrote that I'm using beta.10.

Anyway, this problem occured because for some reasons material upgraded itself to version 12, seems like I messed up with the new npm version. the package.json declared material-10 while the package.lock declared material-12

Thanks

If you had something along the lines of ~2.0.0-beta.10 it might've updated it for you.

Hello,
I'm having the same problem. Also using material-10. I tried to migrate as described in https://www.npmjs.com/package/angular-material-prefix-updater but I get the error: "Could not find updated prefix for identifier ..." i.e. (MdDialog). Also checked the package-lock and indeed the version there is declared material-12. I tried changing it, but this still doesn't solve the problem. Any ideas of what I am missing? @theunreal what did you do exactly to solve it?
Thanks

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

jelbourn picture jelbourn  路  3Comments

Miiekeee picture Miiekeee  路  3Comments

3mp3ri0r picture 3mp3ri0r  路  3Comments

LoganDupont picture LoganDupont  路  3Comments

MurhafSousli picture MurhafSousli  路  3Comments