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

ESM support #79

Open
vladinator1000 opened this issue Jan 17, 2025 · 0 comments
Open

ESM support #79

vladinator1000 opened this issue Jan 17, 2025 · 0 comments

Comments

@vladinator1000
Copy link

vladinator1000 commented Jan 17, 2025

Hi there, I'm trying to use umap-js with Vitest, but I'm getting this error:

TypeError: Cannot use require() to import an ES Module.
 ❯ .../node_modules/.pnpm/umap-js@1.4.0/node_modules/umap-js/dist/umap.js?mf_vitest_no_cjs_esm_shim:8

Is ESM support planned for umap-js?

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

1 participant