chartjs/chartjs-plugin-datalabels

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

huqedato opened this issue · 3 comments

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

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

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

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