I’m working on an Angular application with a system of plugins that are each taken in as a AMD bundle and then compiled with compiler.compileModuleAsync
. This worked in Angular 9, but in Angular 10, we are hitting a problem. All of the plugins (mostly built in Angular 6 or less) throw a ?mod
not found error on loading.
Specifically, I am loading a plugin build in Angular 4 that was converted to an AMD bundle. The error gets thrown when a module import is compiled. It says "SUB_MODULE does not have '?mod' property."
I’ve tried to dynamically run ?compileNgModule
and ?compileNgModuleDefs
but nothing seems to get the plugin to load. We would like to maintain backwards compatability, if at all possible. If anyone can point me in the right direction, that would be great! Thanks so much in advance!