DEV Community

CodetoLive blog
CodetoLive blog

Posted on • Originally published at codetolive.in on

ERROR in ./src/$$_lazy_route_resource lazy namespace object Module not found. Cant resolve .module.ngfactory.js in...

Are you facing the below error? I’ve tried various solutions from different forums and no solution worked for me. Finally, I tried deleting the node modules, which helped to solve the problem.

ERROR in ./src/(_lazy_route_resource lazy namespace object Module not found: Error: Can't resolve '.module.ngfactory.js' in ')_lazy_route_resource’

Solution:

Steps:
1. Delete the node modules folder
2. Run -> npm install

Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay