Discord.js build error

I basically have this issue: https://www.reddit.com/r/node/comments/q73qnd/error_cannot_find_module_nodeevents/

It happens on build whenever I import Discord from “discord.js”
Comment this out and it builds fine.

{
  "name": "react-resumepop",
  "version": "0.1.0",
  "private": false,
  "engines": {
    "node": "^16.12.0"
  },
  "dependencies": {
    "@discordjs/rest": "^0.2.0-canary.0",
    "bootstrap": "^5.1.3",
    "create-react-app": "^5.0.0",
    "discord-api-types": "^0.26.1",
    "discord.js": "^12.5.3",
    "react": "^16.x.x",
    "react-bootstrap": "^2.0.4",
    "react-dom": "^16.x.x",
    "react-hook-form": "^7.22.5",
    "react-motion": "^0.5.2",
    "react-scripts": "^5.0.0",
    "react-scroll": "^1.8.4",
    "react-spring": "^9.4.1",
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "browserslist": [
    ">0.2%",
    "not dead",
    "not ie <= 11",
    "not op_mini all"
  ]
}

Linke to project: https://glitch.com/edit/#!/buttoned-fluoridated-ixia