I have been asked to create a project in angular 4 while angular 5 is already in market. I have RND for several day to find out how to create an angular 4 project. Meanwhile, I have come to know that downgrading angular CLI will work for me. I did so and created a project which was really an angular 4 project. When I build my project for a production environment, I encounter an error which is listed below.
ERROR in ./src/main.ts Module not found: Error: Can't resolve './$$_gendir/app/app.module.ngfactory' in 'E:\typescript\lisleware\src' @ ./src/main.ts 4:0-74 @ multi ./src/main.ts
If any kindhearted person can help me in this matter then he/she will be appreciated.