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.

Cannot compile using Ivy: Failed to read entry point info -> ERROR in Failed to list lazy routes : app.module#AppModule routes: Unknown module

See original GitHub issue

Description

I’ve enabled the ivy compiler flag and when I compile I get the following stream of error messages

WARNING in Failed to read entry point info from …/node_modules/npm/test/fixtures/config/package.json with error SyntaxError: Unexpected end of JSON input.

WARNING in Failed to read entry point info from …/node_modules/npm/test/fixtures/config/package.json with error SyntaxError: Unexpected end of JSON input.

ERROR in Failed to list lazy routes: Unknown module ‘…/src/app/app.module#AppModule’.

🔥 Exception or Error




ERROR in Failed to list lazy routes: Unknown module '../src/app/app.module#AppModule'.


🌍 Your Environment

Angular Version:



<!-@angular-devkit/build-optimizer   0.800.3
@angular-devkit/build-webpack     0.800.3
@angular-devkit/core              7.3.9
@angular-devkit/schematics        8.0.3
@angular/cdk                      8.0.1
@angular/cli                      8.0.3
@angular/pwa                      0.800.3
@ngtools/webpack                  8.0.3
@schematics/angular               8.0.3
@schematics/update                0.800.3
rxjs                              6.5.2
typescript                        3.4.5
webpack                           4.30.0- ✍️-->

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
Splaktarcommented, Sep 26, 2019

@avatsaev this issue was closed as it didn’t include a reproduction. https://github.com/angular/angular/issues/32547 has been opened, with a reproduction, to track this issue going forward.

1reaction
bobskigitcommented, Jun 24, 2019

Its angular 8.1.0-next.3 of @angular/core.

Its a relatively large multi-language application around 100+ components, 50 or so services. It’s been migrated from 6 to 7 to 8 over the last year. There are around 20 modules all loaded lazily, with a single shared common module. If I turn IVY off it compiles perfectly.

I have removed all the lazy loaded modules and the error is exactly the same, we also use DevExtreme from Devexpress for a large number of the UI widgets.

Is it possible to run something to provide a better pinpoint for the errors?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to list lazy routes: Unknown module ... - Stack Overflow
I got this error after upgrading my learning project to 8 Like op, I was surprised to get this as I am not...
Read more >
Automatically upgrade lazy-loaded Angular modules for Ivy!
The ROUTES are injected into the application's Router when it is created. When Angular encounters a route with a loadChildren property on it,...
Read more >
Lazy loading Angular modules with Ivy - InDepth.Dev
So we need to load and instantiate the module too. But how do we do that? If we export the NgModule , we...
Read more >
Failed to list lazy routes: Unknown module AppModule after ...
I got some cryptic error about NgModule.schemas needing to be an array of schemas. I eventually removed my existing import and looked at...
Read more >
Angular Universal: Complete Practical Guide
Pre-Rendering our Application using the Universal bundle and renderModuleFactory(); Implementing an Angular Universal Express Server from ...
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