Skip to content

NodeJS usage not working in ESM #798

@nickpharrison

Description

@nickpharrison

Hi,

It appears as if NodeJS needs a helping hand to identify the NodeJS version of this library as commonjs rather than a module, since the package.json that's shipped with NPM listed "type": "module,".

I was able to get this working in NodeJS ESM by renaming node_modules\parquet-wasm\esm\parquet_wasm.js to have an extension of .cjs and replacing references in the package.json to use the new extension.

Unfortunately I'm not familiar enough with the build/bundle process for this module to be able to submit a PR myself.

Hopefully this would be a small change which would allow compatibility with modern NodeJS code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions