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.

Multiple entryModule support

See original GitHub issue

From @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:closed
  • Created 5 years ago
  • Reactions:19
  • Comments:15 (6 by maintainers)

github_iconTop GitHub Comments

12reactions
Rushcommented, Nov 8, 2018

I would love to find a solution as well.

3reactions
jetfontanillacommented, May 30, 2019

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

import { AngularCompilerPlugin } from "@jetlogs/webpack";


new AngularCompilerPlugin({
    tsConfigPath: "tsconfig.json",
    paths: [
      "/path/to/entry1.ts",
      "/path/to/entry2.ts"
    ]
})


Read more comments on GitHub >

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

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