[英]ERROR Error: Uncaught (in promise): Error: Runtime compiler is not loaded Error: Runtime compiler is not loaded
I'm trying to use AOT compilation using ng build --prod.我正在尝试使用 ng build --prod 使用 AOT 编译。 I don't know what I'm doing wrong.我不知道我做错了什么。
Project Url- https://github.com/nishant1596/sampleAOT项目网址- https://github.com/nishant1596/sampleAOT
Please Help, Thanks in advance请帮助,提前致谢
I was using this form of lazyLoading -我正在使用这种形式的lazyLoading -
loadChildren : ()=> import ('./home/home.module').then(m=>m.HomeModule)
instead of代替
loadChildren : './home/home.module#HomeModule
' loadChildren : './home/home.module#HomeModule
'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.