chartjs / chartjs-plugin-datalabels

Chart.js plugin to display labels on data elements
https://chartjs-plugin-datalabels.netlify.app
MIT License
863 stars 459 forks source link

Build failed: TypeError: (0 , n.merge) is not a function at Object.<anonymous> (chartjs-plugin-datalabels.esm.js:579:1) #385

Open huqedato opened 1 year ago

huqedato commented 1 year ago

When I build it with Parcel the entire build fails: TypeError: (0 , n.merge) is not a function at Object. (chartjs-plugin-datalabels.esm.js:579:1)

Package versions: chartjs-plugin-datalabels@2.2.0 chart.js@4.3.0 parcel@2.8.2

xdarov commented 12 months ago

parcel build --no-scope-hoist it worked for me

simonbrunel commented 11 months ago

@huqedato did you try the solution suggested by @xdarov? If it's not working, please provide a repository that reproduces your issue.

kokarn commented 10 months ago

I can confirm --no-scope-hoist fixed a similar issue for me. Any idea why this would be needed?