Module x has no exported member
See original GitHub issueBug, 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
using ng 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
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Module has no exported member error in angular module
I've got the error "Module has no exported member" for my DialogComponent, UploadService, and UploadComponent.
Read more >TypeScript - Solve the module has no exported member error
In this tutorial, we are going to learn about how to solve the module that has no exported member error in TypeScript.
Read more >module has no exported member · Discussion #4331 - GitHub
I would really appreciate if somebody could explain why pnpm is not importing the dependencies of a module that I am importing.
Read more >Module Has No Exported Member? : r/typescript - Reddit
Because the project is poorly structured. It just exports a single namespace, not individual types. It's not tree-shaking compatible either.
Read more >[Solved] Error TS2305: Module '”{FilePath}/app.component ...
The usual reason behind the error2305: Module Has No Exported Member is the missing export class in your component file that you try...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
The
Md*
prefixed classes have been renamed toMat*
(see the beta.11 docs). There’s a tool to help you migrate to the new prefixes.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.