Build Your Own Retro Gaming Website: Next.Js 14 + Prisma
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
Error: Warning: Cannot specify a encType or method for a form that specifies a function as the action. React provides those automatically. They will get overridden.
at form
at div
at GameForm (webpack-internal:///(ssr)/./src/app/(admin)/dashboard/game/(form)/form.jsx:32:21)
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’)
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