Skip to content

ESM support #79

Description

@vladinator1000

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions