Uncaught ReferenceError: require is not defined at app.js:7 code example Example: require is not defined remove "type": "module" from package.json