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

Fix documentation after setting plugin as module #885

Merged
merged 1 commit into from
May 11, 2023

Conversation

stockiNail
Copy link
Collaborator

This Pr should fix the issue related to the documentation where the chart instances are not available because the chart.js elements are not registered.

The issue sounds to be related to vuepress-theme-chartjs and how imports are managed.
Not clear to me why (apologize) but adding the import names where missing, the app built by webpack/vue seems to have the registration and is importing everything as it should.

@stockiNail
Copy link
Collaborator Author

@kurkle @LeeLenaleee let me know what you think. Not sure why this update should solve the issue but weirdly the vue app JS is not built correctly if we omit the names of the imports.

@stockiNail
Copy link
Collaborator Author

@kurkle @LeeLenaleee I didn't relate the PR to the issue because I would like to see how it works on GHP before to close the issue.

@stockiNail stockiNail merged commit 37f1516 into chartjs:master May 11, 2023
10 checks passed
@stockiNail stockiNail deleted the fixDocImports branch May 11, 2023 10:41
@stockiNail
Copy link
Collaborator Author

@kurkle @LeeLenaleee I can confirm you that the development version on doc (master) is now rendering the charts.... The problem is that version 3.0.0 is broken :(
Let me know if you think we can fix in same way, otherwise we could release version 3.0.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants