Next.js Discord

Discord Forum

Error occurred prerendering page "/". ReferenceError: self is not defined

Unanswered
New Guinea Freshwater Crocodile posted this in #help-forum
Open in Discord
New Guinea Freshwater CrocodileOP
Link to the code that reproduces this issue
https://github.com/kamlendras/OpenCryptoExchange

To Reproduce
npm install / yarn install / bun install
npm run build / yarn run build / bun run build
Its been so many days i am unable to solved this issue. Also i read https://nextjs.org/docs/messages/prerender-error but its not helping. :sad

Current vs. Expected behavior
Project should succesfully deploy , not is not able to deploy.

Provide environment information
OS : Arch Linux
"dependencies": {
"@emotion/react": "^11.11.4",
"@emotion/styled": "^11.11.5",
"@fontsource/inter": "^5.0.18",
"@mui/icons-material": "^5.15.19",
"@mui/joy": "^5.0.0-beta.36",
"add": "^2.0.6",
"next": "14.2.3",
"react": "^18",
"react-animated-numbers": "^0.18.0",
"react-dom": "^18",
"react-transition-group": "^4.4.5"
},
"devDependencies": {
"typescript": "^5",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.3"
}

5 Replies

share us a github link to that file where you are facing the bug
@Anay-208 share us a github link to that file where you are facing the bug
New Guinea Freshwater CrocodileOP
issue solved!
Channel catfish
bro what was the problem ?
im facing th e same issue