Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AppServerModuleNgFactory is not being built

Hi I have an angular app which I converted into Angular Universal. After lots of struggle I came to a point where AppServerModuleNgFactory is undefined.

`AppServerModuleNgFactory`

is undefined when I console.log()

When I debug the generated main.js I cannot find that class in the file at all.

Here is my build script ng build --prod && ng run ui:server:production

like image 967
Mahesh Avatar asked Jul 20 '26 04:07

Mahesh


1 Answers

AppServerModuleNgFactory is no longer available in Ivy. Instead please use AppServerModule

like image 194
Himanshu Patni Avatar answered Jul 22 '26 23:07

Himanshu Patni



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!