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