AOT building fails: Module not found: Error: Can't resolve 'ngx-infinite-scroll/index'
See original GitHub issueThis 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:
- Created 6 years ago
- Comments:34 (29 by maintainers)
Top 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 >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 FreeTop 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
Top GitHub Comments
@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
This IS the reason. Major jumps in versions, like that, is bound to cause issues.
I’d advice towards updating to 4.x @cronosxfiles.