-
Notifications
You must be signed in to change notification settings - Fork 166
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Apexcharts does not work in production mode with Vite #14039
Comments
This works with Vite 3 beta 0, possibly resolved by vitejs/vite#8459 |
The cause is probably the dynamic require in https://github.com/appreciated/apexcharts-flow/blob/master/src/main/resources/META-INF/resources/frontend/com/github/appreciated/apexcharts/apexcharts-wrapper.js#L97 |
A PR for Apexcharts to make this work also with Vite 2: appreciated/apexcharts-flow#134 |
Closing this as there is nothing that can be fixed in Flow. Either the Apexcharts PR should be applied or this will work once Flow upgrades to Vite 3 (which currently has some other issues) |
Description of the bug
Apexcharts addon from the directory + Vite + Vaadin 23.1.1 works fine in development mode but in production mode you get a JS error
Minimal reproducible example
Expected behavior
A charts should be shown when opening http://localhost:8080
Actual behavior
Versions:
The text was updated successfully, but these errors were encountered: