You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Resulting error when implemented in @symfony/webpack-encore:
Uncaught (in promise) ReferenceError: ApexCharts is not defined
at apexcharts.common.js:6
at Array.forEach (<anonymous>)
at t.value (apexcharts.common.js:6)
at t.value (apexcharts.common.js:6)
at t.value (apexcharts.common.js:14)
at t.create (apexcharts.common.js:6)
at apexcharts.common.js:14
at new Promise (<anonymous>)
at t.value (apexcharts.common.js:14)
at HTMLDocument.<anonymous> (brush.js:129)
The text was updated successfully, but these errors were encountered:
kinekt4
changed the title
ApexCharts Brush Chart doesn't work in webpack-encore
Chart from charting library doesn't work in webpack-encore
Mar 31, 2021
This indeed looks like the apexcharts.js bug where the library does not work fine with webpack. That's not an issue in webpack-encore so I'm closing this ticket. There's nothing encore can do here.
Summary
A chart (
Brush Chart
) from a charting library (ApexCharts
) does not work insymfony/webpack-encore-bundle
.The chart on codepen: https://codepen.io/apexcharts/pen/rqWeBX
Resulting error when implemented in
@symfony/webpack-encore
:I've reported the issue with
ApexCharts
but haven't got a response from them as yet: apexcharts/apexcharts.js#2315Reproduce
Install framework and required backend and frontend components
Setup controllers and assets
Contents of
brush.js
Environment
OS: Fedora 33
PHP: 7.4
Symfony: v4.4
symfony/webpack-encore-bundle: v1.11
npm: v7.6.2
ApexCharts: v3.26
Browsers Tested: Opera, Chrome, Firefox
The text was updated successfully, but these errors were encountered: