sajivkumar / mathjax-angular

Mathjax 3 for angular
10 stars 13 forks source link

forChild method incorrect return type #12

Closed csiki100 closed 3 years ago

csiki100 commented 3 years ago

When I want to use the mathjax module in a child module the build throws an error, which says "A value for 'forChild' cannot be determined statically, as it is an external declaration." I changed the return type of forChild to ModuleWithProviders locally and it fixed the problem for me.

mathjax-error mathjax-error-2

csiki100 commented 3 years ago

Also If you use the MathjaxModule in a child module it goes into an inifinite loop (possibly because the child module also puts the mathjax script into the DOM).