Skip to content

[Bug] ESM doesn't work without "type": "module" in node #3080

@JamesAPetts

Description

@JamesAPetts

Bug description

Running vtk.js on the backend doesn't work without modifying the package.json.

(Maybe this is a feature request?)

Steps to reproduce

Try installing @kitware/vtk.js on node when using ESM. The package is incorrectly loaded, and it will run properly when "type": "module" is added.

Detailed Behavior

No response

Expected Behavior

It works OOTB in node. Is there any other issue that would be caused by adding "type": "module" to the package.json?

Environment

  • vtk.js version: master
  • node.js 18+ (but probably before also).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions