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

Build error Error occurred prerendering page "/". #54

Open
Muhammadyunusxon opened this issue Dec 3, 2024 · 1 comment
Open

Build error Error occurred prerendering page "/". #54

Muhammadyunusxon opened this issue Dec 3, 2024 · 1 comment

Comments

@Muhammadyunusxon
Copy link

If I run the yarn run build command, I get this error. Error occurred prerendering page "/".

Screenshot 2024-12-03 at 23 58 30
@Krati97
Copy link

Krati97 commented Feb 3, 2025

@Muhammadyunusxon in your page.tsx, change import style to Grid component.
from this:
import Hero from "@/components/Hero";

to this:
const Grid = dynamic(() => import("../components/Grid"), { ssr: false, });

and add "use client"; on top of page.tsx file.

These steps resolved my errors and deployed pages successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants