Raddy Website Design & Development Tutorials

Build Your Own Retro Gaming Website: Next.Js 14 + Prisma

By Raddy in NextJs ·

In this video, we’re going to build a simple retro gaming platform I’ve named NextRivals!

NextRivals is mostly a desktop-friendly site where you can dive into classics games. Some of the emulator systems include Arcade, Atari, Super Nintendo Entertainment System, Nintendo 64, PlayStation, Mega Drive, and much more.

Bug Fixes

#Bug 1 encType Error

In app/(admin)/dashboard/game/(form)/form.jsx remove method="post"

<form action={deleteFormAction} method="post">
to
<form action={deleteFormAction}>

#Bug 2 Error: Cannot read properties of null (reading ‘categories’)

searchParams await

Github Issue Here

In app/(main)/game/[slug]/page.jsx add await to the searchParams

const page = parseInt(searchParams.page) || 1;
to
const page = await parseInt(searchParams.page) || 1;

In app/(main)/game/[slug]/page.jsx

Leave a Reply

Your email address will not be published. Required fields are marked *