Welcome to the fullstack pizza e-store project. I have completed over 30% of the work, but I am facing an error that is preventing me from finishing it.
If you want to check out the code on GITHUB, you can visit: https://github.com/nikitodeon/NextPizza-ErrorProject.git
The error message I'm encountering on localhost:3000 is as follows:
[ Server ] Error:
Invalid `prisma.category.findMany()` invocation:
Error occurred during query execution:
ConnectorError(ConnectorError { user_facing_error: None, kind: QueryError(PostgresError { code: "42P05", message: "prepared statement \"s0\" already exists", severity: "ERROR", detail: None, column: None, hint: None }), transient: false })
Source
app\(root)\page.tsx (16:22) @ async Home
...
Here is the error message displayed in the Terminal:
▲ Next.js 15.1.0
- Local: http://localhost:3000
- Network: http://192.168.0.103:3000
- Environments: .env
...
You can find more detailed information about the errors and the project structure in the code files provided in the repository. I've tried multiple solutions to resolve the issue without success so far.