AOT - Function calls are not supported Module.forRoot
问题 I've been trying to compile my Angular app using AOT with @angualar/compiler-cli but I've been ending up with an error during compiling which I am not able to solve. The error states: Error encountered resolving symbol values statically. Calling function 'PanelModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function. I have my main AppModule and another module called, PanelModule . In PanelModule I have a forRoot method that