Multiple entryModule support
See original GitHub issueFrom @artonge on May 7, 2018 14:51
Bug Report or Feature Request (mark with an x
)
- [ ] bug report -> please search issues before submitting
- [x] feature request
Area
- [x] devkit
- [ ] schematics
Versions
node version: v9.4.0 npm version: 5.6.0 Linux (Ubuntu 17.10)
Repro steps
Clone this example: https://github.com/artonge/multiple-entrymodules
The log given by the failure
At execution in the browser I have:
Uncaught Error: No NgModule metadata found for 'AppModule'.
This error only appears for the module that wasn’t specified has the entryModule in the webpack config.
Desired functionality
At my company our webpack config has two entry points for two different apps, and generate two bundles for the two apps. The problem is that when using AOT, we can only specify one entryModule, but the two apps have different entryModule. It would be nice to specify two entryModules so the metadata are generated for both of them.
Copied from original issue: angular/devkit#861
Issue Analytics
- State:
- Created 5 years ago
- Reactions:19
- Comments:15 (6 by maintainers)
Top Results From Across the Web
Webpack 5 ChunkGroup API with multiple entries?
entryModule : Multiple entry modules are not supported by the deprecated API (Use the new ChunkGroup API). I have tried to find documentation ......
Read more >Entry components - Angular
There are two main kinds of entry components: The bootstrapped root component; A component you specify in a route definition. A bootstrapped entry...
Read more >Entry Points - webpack
As mentioned in Getting Started, there are multiple ways to define the entry property in your webpack configuration. We will show you the...
Read more >Multi-Function Inlet, Corcom HG Series | TE Connectivity
Smallest power entry module with metric fuse holders. Mechanically identical to GG Series. Available only with dual fusing. More ...
Read more >Multiple Indicator Monitoring (MIM) of Stream Channels and ...
If the code is not in the Data Entry Module, use the official plant codes in the PLANTS Database (USDA, Natural Resources Conservation...
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
I would love to find a solution as well.
if you need an option for multiple paths instead of multiple entry modules, I’ve forked @rush (based from @artonge) and added this feature https://github.com/jetlogs/angular-cli
npm install
@jetlogs/webpack