Hi All,

I am trying to get both AOT and JIT to work simultaneously on a Angular 4 
project. AOT works fine with lazy loaded module but while loading using JIT 
compiler I am getting the following error - 

component name (lazy loaded)  is not part of any ngmodule. Do I have to do 
something special for JIT mode?

I have ejected webpack config from angular-cli to improve certain 
configurations on webpack. 

My loaders look like - 

                    "test": /*\.*ts$/,

                    "loaders": ["@ngtools/webpack", 
"angular-router-loader?aot=false&genDir=compiled&loader=system"]


As you can see I used angular-router-loader but with or without is not 
helping to solve the issue. lazy modules chunks are created and while 
loading I can see the chunk file was called over http successfully but then 
I get jitcompiler errors on the component not available.

Thanks,
Akhil

-- 
You received this message because you are subscribed to the Google Groups 
"Angular and AngularJS discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/angular.
For more options, visit https://groups.google.com/d/optout.

Reply via email to