Skip to content
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

Register all ChartJS elements as workaround #1039

Conversation

JGreenlee
Copy link
Collaborator

Described in e-mission/e-mission-docs#986 (comment), we have a production-specific error where the needed ChartJS elements are not recognized as being registered. Likely an incompatibility between ChartJS and Webpack.

As a workaround, we will register all of the registerables. Unfortunately, we will no longer benefit from tree-shaking with this approach.

Described in e-mission/e-mission-docs#986 (comment), we have a production-specific error where the needed ChartJS elements are not recognized as being registered.
Likely an incompatibility between ChartJS and Webpack.

As a workaround, we will register all of the `registerables`. Unfortunately, we will no longer benefit from tree-shaking with this approach.
@shankari
Copy link
Contributor

@JGreenlee can you confirm that this change fixes the issues - maybe with a screenshot?

@JGreenlee
Copy link
Collaborator Author

This is the dashboard for that usaid-laos user from yesterday, loading correctly in the devapp after npm run serve-prod.

(Not much to look at because this user doesn't have any trips.) But before this change, this was 100% reproducibly loading as a blank page

@shankari shankari merged commit c190794 into e-mission:onboarding_routing_sept_2023 Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants