I got this error, repeatedly.
CustomReportPreview.html:2 ERROR TypeError: window.Flexmonster is not a function
at FlexmonsterPivot.webpackJsonpac__name_.1200.FlexmonsterPivot.ngOnInit (ng-flexmonster.js:54)
at checkAndUpdateDirectiveInline (core.es5.js:10848)
I am integrating flexmonster into angular webpack project. I have installed flexmonster dependencies using npm.
but I guess the flexmonster library doesn’t seem to be working…
I read the similar question and answer that others experienced, but the solution using cdn doesn’t work for me either.
I believe the library has been imported and bundled properly seen as in captured image.
but It doesn’t work.
Thank you for writing. Please try the following GitHub example: https://github.com/flexmonster/pivot-angular. It describes how
ng-flexmonster can be integrated into the Angular project.
Please let us know if it was helpful for you.