require is not defined at client.js:1 code example Example: require is not defined remove "type": "module" from package.json