Despite the COVID-19 outbreak, our team continues operating at full speed. We are always here to support and answer all your questions.

Feel free to reach out by filling this quick form.

Fill the form
Get Free Trial

Version 2.7.0 has issues with webpack

abons asked on March 6, 2019

Uncaught (in promise) TypeError: Cannot set property ‘PivotApi’ of undefined
at Flexmonster (flexmonster.full.js?312d:9)

6 answers

Tanya Gryshko Flexmonster March 7, 2019

Thank you for writing to us.
We have checked on our side and integration with Webpack seems to be working as expected. Could you please try once more by following the steps from our tutorial? Here is a link:
If the issue still occurs, please provide more details about your environment: OS, browser, data type.
Waiting for your feedback.

abons March 8, 2019

It could also be the combination with vue.js instead of webpack.
It works fine for me now (dirty-fix: changed this.PivotApi to window.PivotAPI)
I’ll check is out after next week, so I don’t need to apply this dirty-fix after every update

Tanya Gryshko Flexmonster March 12, 2019

Thanks for a quick update.
Could you please share a sample project where the issue is reproducible?
This would greatly help us.

abons March 25, 2019

Here is the sample project, sorry for the delay
> error in console (chrome 73.0)

Vera Didenko Flexmonster March 25, 2019


Thank you for providing us with a JSFiddle demonstrating the issue.

We have made a few changes to the JSFiddle.

  Please note that if you change this line of code: = Flexmonster({

To this: = new Flexmonster({

Then the issue will be resolved.     
Please note that the style sheets may have not loaded correctly. 
To fix this possible issue, please follow our integration with Webpack guide.

Please let us know if everything works for you and if you have further questions.

Best Regards,

abons March 26, 2019

Thanks, problem fixed.

Please login or Register to Submit Answer