I have one application in angular 7...When I run "ng serve" in my localhost...All features work perfectly...I can create dynamic components...typescript code like
this.dynamicModule =this.compiler.compileModuleSync(this.createComponentModule(this.dynamicComponentArray))
where this.dynamicComponentArray is an array of angular components (part of them are dynamics)...I can give more details about the "createComponentModule" function but I think that it's not the goal here.
I buy one OVH vps machine and install exactly the same application with...
ng serve --host 51.83.73.17
application work well (it means login component...authentification) untill the JIT interpretor comes through the line here above...
this.dynamicModule =this.compiler.compileModuleSync(this.createComponentModule(this.dynamicComponentArray))
I have then the following error
ERROR Error: Can't compile synchronously as DynamicComponent is still being loaded! at componentStillLoadingError (vendor.js:33972) [angular]
DynamicComponent is the name I gave to my dynamic component
class DynamicComponent implements OnInit, AfterViewInit {....}
I work all the long with sync functions so error can not come from network speed or latency... encounter somebody else this error ? I don't see any post detailing that on stack overflow !