require is not defined eslint code example Example: require is not defined remove "type": "module" from package.json