Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

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!

question from:https://stackoverflow.com/questions/65888877/compile-angular-4-amd-bundles-in-angular-10-dynamically

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
1.1k views
Welcome To Ask or Share your Answers For Others

1 Answer

Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...