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

Import in auto.esm.js is wrong #10303

Closed
mnlipp opened this issue Apr 17, 2022 · 2 comments · Fixed by #10341
Closed

Import in auto.esm.js is wrong #10303

mnlipp opened this issue Apr 17, 2022 · 2 comments · Fixed by #10341

Comments

@mnlipp
Copy link

mnlipp commented Apr 17, 2022

Expected behavior

Importing auto.esm.js should work.

Current behavior

Does not work (tested in the browser).

Reproducible sample

(not needed)

Optional extra steps/info to reproduce

No response

Possible solution

The line in auto.esm.js must read

import {Chart, registerables} from '../dist/chart.esm.js';

(Extension .js must be there). After the change, is works.

Context

No response

chart.js version

v3.7.1

Browser name and version

No response

Link to your project

No response

@LeeLenaleee
Copy link
Collaborator

Please add a reproducable sample because it is working fine as far as I used it

@mnlipp
Copy link
Author

mnlipp commented Apr 17, 2022

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

Successfully merging a pull request may close this issue.

2 participants