Skip to content

after changing extensions to .mjs and adding -r esm getting error module not defined.  #37

@xs2bharat

Description

@xs2bharat

Hi

I am pretty new to node.
After changing module file extensions from ".js" to ."mjs" and adding -r esm arguments to node, I am getting error "module" is not defined.

Do you know how to add esm support?

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