error:`runtime compiler is not loaded` in aot mode

Multi tool use
Multi tool use


error:`runtime compiler is not loaded` in aot mode



In my angular 6 project I want to define all routes of DashboardModule as a children of profile route in AppModule like below code


DashboardModule


profile


AppModule


RouterModule.forRoot([
{
path: '',
component: HomeComponent
},
{
path: 'profile',
loadChildren: () => DashboardModule
}



this code run with JIT compiler (while aot:false in angular.json file)
but giving runtime compiler is not loaded error with AOT compiler( while aot:true).


aot:false


angular.json


aot:true



so my question is, is there any way to load DashboardModule's routes as a children of profile route in AppModule without lazy loading DashboardModule?


DashboardModule's


AppModule


DashboardModule









By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

X5m6,0J2ZnF,qPi2LVav01cZ2kX,8BUhFUMoJXctw5oekuj5tSIqGNFkk8bx,ECYapanM1X81MvgcmeH6Y3bGrnyu2
unYNNXG5kdC,kRO3eF,wyh5zLQk D64Hbe0,ok

Popular posts from this blog

PySpark - SparkContext: Error initializing SparkContext File does not exist

django NoReverseMatch Exception

List of Kim Possible characters