<package-name> has no exported member SampleModule
See original GitHub issueFirst 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:
- Created 7 years ago
- Comments:5 (4 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 >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 >
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 Free
Top 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
@beeman — Thank YOU Bram! 👍
@beeman I have updated the template file and released v4.0.0 to fix the issue.
Thank you for reporting. Much appreciated! 👍