You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Built module distribution cannot be imported to other modules #6378
If you import { SimplestModule } the result will be undefined. If you import SimplestModule (i.e. module.exports that gets created), you will get an undecorated object.
The log given by the failure.
From the project attempting to import:
Unexpected value XXX imported by the module 'AppModule'
Desired functionality.
You should be able to use ng to build modules that can be imported into other modules. Currently modules that are built do not appear to be ready to be imported by other modules post-build.
In general it would be nice to have more documentation / tools surrounding the creation of third party modules or modules that are intended to be reused by other modules.
Activity
clydin commentedon May 18, 2017
The CLI currently only generates an application. Library creation is a planned future feature.
ajcrites commentedon May 18, 2017
@clydin understandable, but in the meantime is there anywhere I can find information about how to build libraries?
ajcrites commentedon May 18, 2017
Closing, see angular/angular#16486
loixlab commentedon Jun 16, 2017
@ajcrites This repo is a very good starter for a library:
https://github.com/filipesilva/angular-quickstart-lib
angular-automatic-lock-bot commentedon 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.