question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Module x has no exported member

See original GitHub issue

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

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:closed
  • Created 6 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

19reactions
crisbetocommented, Oct 8, 2017

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.

0reactions
angular-automatic-lock-bot[bot]commented, Sep 7, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found