problem while in WebPack, Angular Integration

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…

3 answers

Public
KIMYEONGSEOK November 13, 2018

I read the similar question and answer that others experienced, but the solution using cdn doesn’t work for me either. 
 

Public
KIMYEONGSEOK November 13, 2018

I believe the library has been imported and bundled properly seen as in captured image. 
but It doesn’t work.

Attachments:
dev_console.PNG

Public
Dmytro Zvazhii Flexmonster November 13, 2018

Hello KIMYEONGSEOK,
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.
Regards,
Dmytro

Please login or Register to Submit Answer