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

Not able to use Chart.js #2996

Closed
shipcommit opened this issue Dec 7, 2021 · 1 comment
Closed

Not able to use Chart.js #2996

shipcommit opened this issue Dec 7, 2021 · 1 comment

Comments

@shipcommit
Copy link

Describe the bug

I'm trying to use Chart.js with SvelteKit. In development mode everything works fine, but when I try to build the project I get the following error.


Directory import 'C:\directory\node_modules\chart.js\auto' is not supported resolving ES modules imported from C:\directory\.svelte-kit\output\server\app.js

Did you mean to import chart.js/auto/auto.js?

Reproduction

Build a project with Chart.js, and run the preview.

Logs

Directory import 'C:\directory\node_modules\chart.js\auto' is not supported resolving ES modules imported from C:\directory\Application development\directory\.svelte-kit\output\server\app.js

Did you mean to import chart.js/auto/auto.js?

System Info

System:
    OS: Windows 10 10.0.22000
    CPU: (6) x64 AMD Ryzen 5 4500U with Radeon Graphics
    Memory: 5.14 GB / 15.37 GB
  Binaries:
    Node: 14.18.1 - C:\Program Files\nodejs\node.EXE
    npm: 7.19.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Spartan (44.22000.120.0), Chromium (96.0.1054.43)
    Internet Explorer: 11.0.22000.120
  npmPackages:
    @sveltejs/adapter-netlify: ^1.0.0-next.35 => 1.0.0-next.35
    @sveltejs/kit: next => 1.0.0-next.166
    svelte: ^3.44.2 => 3.44.2

Severity

blocking an upgrade

Additional Information

No response

@benmccann
Copy link
Member

See #1783 (comment)

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

No branches or pull requests

2 participants