Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
kamlendras opened this issue Jun 12, 2024 · 1 comment
Closed
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc. locked Output (export/standalone) Related to the the output option in `next.config.js`. Script (next/script) Related to Next.js Script Optimization.

Comments

@kamlendras
Copy link

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
20240612_18h49m07s_grim
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"
  }

Which area(s) are affected? (Select all that apply)

Not sure, Developer Experience, Output (export/standalone), Script (next/script)

Which stage(s) are affected? (Select all that apply)

next build (local), Vercel (Deployed)

Additional context

No response

@kamlendras kamlendras added the bug Issue was opened via the bug report template. label Jun 12, 2024
@github-actions github-actions bot added Developer Experience Issues related to Next.js logs, Error overlay, etc. Output (export/standalone) Related to the the output option in `next.config.js`. Script (next/script) Related to Next.js Script Optimization. labels Jun 12, 2024
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. Developer Experience Issues related to Next.js logs, Error overlay, etc. locked Output (export/standalone) Related to the the output option in `next.config.js`. Script (next/script) Related to Next.js Script Optimization.
Projects
None yet
Development

No branches or pull requests

1 participant