-
Notifications
You must be signed in to change notification settings - Fork 21
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
$exports is not defined #33
Comments
For me using the umd version fixed the export issues. |
@gregh3269 Thank you very much for your fast response. Maybe a stupid question, but can you describe to me exactly how to do this with my chosen integration? |
No sure it is related, its only a suggestion, for me it only seems works with maybe the "chart.js": "^4.0.0", defaults to the esm version? |
I use "npm run build" to get the advantage of the bundle size. In my JS file I imported the ChartDeferred as follows:
Without the ChartDeferred, the charts are working perfectly, but with ChartDeferred imported, this error appears and I can't get rid of this:
chart.js = 4.3.0
chartjs-plugin-deferred = 2.0.0
my package.json:
The text was updated successfully, but these errors were encountered: