ngx-modialog icon indicating copy to clipboard operation
ngx-modialog copied to clipboard

AoT: when opening: Uncaught (in promise): Error: No component factory found for CSSBackdrop

Open sublime392 opened this issue 9 years ago • 4 comments

Using the bootstrap plugin. Everything fine with normal build. When using AoT compile modal will not open. Gives Uncaught (in promise): Error: No component factory found for CSSBackdrop

Any ideas?

sublime392 avatar Oct 14 '16 18:10 sublime392

Same here! gone mad last week with the same error..it looks like when aot compiled the modal module get's inserted twice in the compiled code. so you have two instances of the CSSBackdrop (...and many others)in the injector. will try to to understand why the module get's pulled in twice this week (if time available) :)

amariniello avatar Oct 17 '16 07:10 amariniello

Same here! Also, @amariniello findings is correct, it seems there are two instances of CSSBackdrop are available. One in CSSBackdropNGFactory.component and one in Module class.

Can anyone suggest a fix for this?

vikashkumar29 avatar Jan 13 '17 11:01 vikashkumar29

Same here, the factories map is not having correct instance of css backdrop.

srivastavaapoorvkumar avatar Mar 17 '17 11:03 srivastavaapoorvkumar

Any updates on this issue?

dcarabott avatar Apr 10 '17 08:04 dcarabott