standard-things/esm

ReferenceError: require is not defined

ati0ns opened this issue · 1 comments

require = require("esm")(module);
ReferenceError: require is not defined                                                                 index.js:1

https://www.npmjs.com/package/esm#getting-started

Uh, I just forgot to remove "type": "module" in my package.json.