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.

AOT building fails: Module not found: Error: Can't resolve 'ngx-infinite-scroll/index'

See original GitHub issue

This is the building command:

ng build --environment=demos --aot --progress --verbose

and this is the error output:

ERROR in ./src/$$_gendir/app/app.module.ngfactory.ts Module not found: Error: Can't resolve 'ngx-infinite-scroll/index' in '/home/user/Git/project/Application/frontend/src/$$_gendir/app' @ ./src/$$_gendir/app/app.module.ngfactory.ts 16:0-53 @ ./src/main.ts @ multi ./src/main.ts

The code compiles correctly with tsc

Installed version: ngx-infinite-scroll@0.5.1

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:34 (29 by maintainers)

github_iconTop GitHub Comments

3reactions
robisim74commented, Sep 12, 2017

@orizens This pr should solve the problem without look for different configurations for who are using Rollup: https://github.com/orizens/ngx-infinite-scroll/pull/187

Greetings, Roberto

2reactions
larssncommented, Jun 13, 2017

This IS the reason. Major jumps in versions, like that, is bound to cause issues.

I’d advice towards updating to 4.x @cronosxfiles.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1 Answer - 1 - Stack Overflow
It is possible that it comes from the library exports. You can fix it by exporting the modules directly from the files and...
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