ati0ns opened this issue 5 years ago · 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.
"type": "module"
package.json