Version 2.7.0 has issues with webpack

Resolved
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

Public
Tanya Gryshko Flexmonster March 7, 2019

Hello,
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: https://www.flexmonster.com/doc/integration-with-webpack/
If the issue still occurs, please provide more details about your environment: OS, browser, data type.
Waiting for your feedback.
Regards,
Tanya

Public
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

Public
Tanya Gryshko Flexmonster March 12, 2019

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

Public
abons March 25, 2019

Here is the sample project, sorry for the delay
https://jsfiddle.net/oah1fdb9/
> error in console (chrome 73.0)

Public
Vera Didenko Flexmonster March 25, 2019

Hello,

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:

this.report = Flexmonster({

To this:  

this.report = 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,
Vera

Public
abons March 26, 2019

Thanks, problem fixed.

Please login or Register to Submit Answer