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.

<package-name> has no exported member SampleModule

See original GitHub issue

First of all thanks for creating this project!

I’m trying to create a library that has a few components. Using version 3.0.4 of this generator I’ve created my library. When I try to include the library in my application I get an error:

Module '"/path/to/angular-sample-app/node_modules/angular-sample-module/dist/index"' 
has no exported member 'SampleModule'.

The fix for this is quite simple, changing export default class SampleModule to export class SampleModule makes it work.

I was wondering if this is expected behavior or if the generator should actually export the class without it being default?

If the latter is the case, please consider my PR. Thanks!

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
jvandemocommented, Dec 21, 2016

@beeman — Thank YOU Bram! 👍

1reaction
jvandemocommented, Dec 21, 2016

@beeman I have updated the template file and released v4.0.0 to fix the issue.

Thank you for reporting. Much appreciated! 👍

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 >
Unable to resole Module '"@pnp/sp"' has no exported member ...
Now, while using ' import { spfi } from "@pnp/sp" ' I am getting below error. '"@pnp/sp"' has no exported member named 'spfi'....
Read more >
Chapter 7. Packages and Modules - Oracle Help Center
A module categorizes some or all of its packages as exported, which means their types may be accessed from code outside the module....
Read more >
app.component has no exported member error - Treehouse
app.component has no exported member error. Hello - my code is identical as in the course, but Im getting 2 errors: Error 1:...
Read more >
Module '"@prismicio/client"' has no exported member 'Content'
As title states, I'm getting this error: This is my prismic.ts: import * as prismic from '@prismicio/client'; import * as prismicNext from ...
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