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

"pie" is not a registered controller #35

Open
JakeMinor opened this issue Dec 19, 2022 · 1 comment
Open

"pie" is not a registered controller #35

JakeMinor opened this issue Dec 19, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@JakeMinor
Copy link
Collaborator

When trying to use ForgeChart, the following error occurs: '"pie" is not a registered controller.'

@JakeMinor JakeMinor added the bug Something isn't working label Dec 19, 2022
@Polymeta
Copy link
Collaborator

Polymeta commented Jan 29, 2023

Seems like this has to do with chart.js using treeshaking and us needing to explicitly register controllers we use, see here https://www.chartjs.org/docs/latest/getting-started/usage.html#tree-shaking

Not sure how we could address this, ideally we don't want to pull in all controllers etc., but we can't predict what is going to get used (or can we?). So maybe we have to leave this to the applications to configure/register controllers they need.

There is also a vue-chartjs integration package, maybe worth checking this out and see if it would help this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants