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.

Chunks are not getting generated with @ngtools/webpack

See original GitHub issue

Versions

Angular CLI: 1.5.0
Node: 6.10.1
Angular 5
@ngtools/webpack version: 1.8.2

Webpack.common.js module: { rules: [{ loader: ‘@ngtools/webpack’, options: { configFileName: ‘tsconfig.webpack.json’, } }], plugins: [{ new AngularCompilerPlugin({ “sourceMap”: true, “tsConfigPath”: helpers.root(‘tsconfig.webpack.json’), “skipCodeGeneration”: true, “compilerOptions”: {} }), }] } Actual result: Chunks is not getting generated for lazy loaded modules Expected Result: Should generate chunks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:11 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
filipesilvacommented, Nov 24, 2017

There was a similar issue (https://github.com/angular/angular-cli/issues/8597) where the problem was ContextReplacementPlugin. If that’s not the problem in your case, could you set up a repro that I can clone to see the problem please?

2reactions
filipesilvacommented, Nov 24, 2017

@EmaGht the @ngtools/webpack plugin is unfortunately not compatible with the DLLPlugin: https://github.com/angular/angular-cli/issues/4565

Read more comments on GitHub >

github_iconTop Results From Across the Web

Angular lazy loading not working in webpack with @ngtools ...
Lazy module is eagerly loading, No separate chunks created for lazy modules. I created a repo to reproduce the issue.
Read more >
@ngtools/webpack | Yarn - Package Manager
Fast, reliable, and secure dependency management.
Read more >
angular-named-lazy-chunks-webpack-plugin - npm package
Webpack plugin that assigns names to the async chunks generated for lazy routes in an Angular app. For more information about how to...
Read more >
Angular Ahead-of-Time Webpack Plugin - npm
Webpack plugin that AoT compiles your Angular components and modules.. Latest version: 15.0.3, last published: a day ago.
Read more >
Under The Hood - webpack
Initial chunk with name main is created. It contains: ./src/index.jsx; react; react-dom. and all their dependencies ...
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