Closed youssef-md closed 5 years ago
This seems to be the exact same error I got, and it seems that it was caused by the new build tool that changed in v1.1.0. The dist file broke my app (which uses Meteor + Webpack) because the minified version uses import
and failed with an Uncaught SyntaxError: Unexpected identifier
error when trying to load apexcharts
.
So far I've downgraded this library to version v1.0.10 to make things work again, but spent a lot of time tracking this issue down. If I'm able, I may try to change the main
setting in the package.json
file to the iife
version to see if this issue is fixed (at least in my build system).
Shouldn't it be the default version, @junedchhipa?
I will compare what are the differences in the new build file and the previous build file.
iife
version was created for users who want to inject React-Apexcharts directly into browser.
As the new bundle is causing issues, I will revert back to the previous build system (gulp) for default imports if things don't work out in the new rollup plugin.
After trying different build configs in rollup, I eventually reverted to gulp for the primary bundle file.
Let me know if v.1.2.0 fixes these issues
🐛 Bug Report
react-apexcharts in the version 1.1.0 is failing the Jest tests
To Reproduce
Expected behavior
Is expected to fail all tests of the components that are related directly or not with the component that is importing Chart from react-apexcharts, even using enzyme's shallow, for an isolated component rendering for testing.
@RochaCarla