Hi,
I am building a perspective component module that uses apex chart as a dependencies. Everything works fine when I installed the module to the gateway, however, the chart fails to render if the Kyvis-Labs apex charts components module is also installed on the same gateway.
I think the error is due to the different versions used in the two module as I am using the latest version of apexcharts
4.3.0
but the Kyvis-Labs is using version 3.54.1
. When i use the version 3.54.1
in my module, the chart renders fine.
I've tried isolating the dependencies but running into some bottlenecks.
I didn't include apexcharts
in the externals
of webpack so the library is bundled which I can see from my output file. I don't want to depend on the apexchart installed in the Kyvis-Labs library because the user may not have that module installed.
The following is how the apex charts is imported in the output file
const apexcharts_1 = __importDefault(__webpack_require__(/*! apexcharts */ "../../node_modules/apexcharts/dist/apexcharts.common.js"));
I've noticed that the Kyvis-Labs component sets the ApexCharts globally
window["ApexCharts"] = ApexCharts;
which I'm not sure might be causing conflicts with the dependencies? I did try setting window["ApexCharts"] = ApexCharts;
in my module as well but that doesn't fix the issue. The Kyvis-Labs library component seems to render fine but my chart component fail to render.
Am I missing steps here?