Error running the latest chartjs-plugin-datalabels with NextJS
See original GitHub issueHello,
I am developing a NextJS site and I installed the latest “chartjs-plugin-datalabels”.
When I am running my project I got the following error:
Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './helpers' is not defined by "exports" in /Users/zaralisandreas/Desktop/Projects/odify/node_modules/chart.js/package.json
I am using Node v18.12.1 and Chart.js 4.0.1.
Any ideas?
I really appreciate any help you can provide.
Issue Analytics
- State:
- Created 10 months ago
- Reactions:10
- Comments:20 (7 by maintainers)
Top Results From Across the Web
Issues · chartjs/chartjs-plugin-datalabels - GitHub
Chart.js plugin to display labels on data elements - Issues ... Error running the latest chartjs-plugin-datalabels with NextJS.
Read more >chart.js - problem with label on the right hand
I use the plugin chartjs-plugin-datalabels it work but the first label is hidden. Do you know how to fix this? https://jsfiddle.net/rq78pg4j/1/
Read more >chartjs-plugin-datalabels
Flexible. Compatible with all types of charts (bar, line, doughnut, radar, etc.) ; Customizable. Appearance and position of each label are fully and...
Read more >1. How to add chartjs-plugin-datalabels to Chart.JS - YouTube
jsIn this video we will explore how to add the chartjs plugin datalabels in Chart.JS. We will be using the ch...
Read more >Integration | Chart.js
js can be integrated with plain JavaScript or with different module loaders. The examples below show how to load Chart.js in different systems....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@simonbrunel I think the plugin must be defined as “module” and defines the exports. See https://github.com/chartjs/chartjs-plugin-annotation/pull/815 and other plugins (gradient https://github.com/kurkle/chartjs-plugin-gradient/blob/master/package.json)
That’s a good news! Thanks @Fish1 and @DecadentIpsum for checking and keep us updated.
@dqve @ignaciodiazb @NotTimTam @epleaner @dahsser can you guys also confirm that Chart 4.1.1 fixes your issue?