Cannot find module './app.module.ngfactory' in app/main.aot.ts file

nativescriptrocks

#1

Hi,

In my app/main.aot.ts file, I got an "Cannot find module ‘./app.module.ngfactory’ " warning.
But the application works fine.

Actually the below two lines what will do? And what is need of this?

main.aot.ts

import { AppModuleNgFactory } from "./app.module.ngfactory";

platformNativeScript().bootstrapModuleFactory(AppModuleNgFactory);

Thanks in advance.


#2

Hi Kumaran,

the app.module.ngfactory is created dynamically during the aot build.
You can ignore this error.

Thanks,
Sebastian


#3

@sebawita Can you share any links related this to get deep understand?


#4

You can learn more about webpack and aot from here


#6

Please mark the proper answers as “Solved” to help keep the forum cleaner and easier for newcomers to navigate through.


#7

Sure. I understood @Pete.K. Thanks for your info.