All Questions
83
questions
0
votes
0
answers
22
views
Why won't my next.js credentials login with email and password work while my google provider authentication does?
I am trying to make a login page with Next Auth V4, and I have followed some instructions online that seems to work well for the google provider which works, but my "credentials" email and ...
0
votes
0
answers
17
views
Issue with libsql client in Next.js with correct environment variables
I'm currently facing an issue with integrating the libsql client into my Next.js application. Here's a simplified snippet of how I'm attempting to create the libsql client:
console.log(process.env....
0
votes
1
answer
108
views
Connect to Cloud SQL from Cloud Run with a NextJS/Prisma setup
Context
I'm developing a NextJS 14 application using google services.
I also use Prisma as my ORM, which works by having a DATABASE_URL (postgresql://postgres:password*^@IPaddress/dbname?schema=public&...
0
votes
0
answers
13
views
In prisma orderBy _count cant take where clause
Problem
Currently, if I try to sort users based on number of posts they have below is the query to be executed.
const getUsers = await prisma.user.findMany({ take: 10, orderBy: { posts: { _count: '...
0
votes
0
answers
68
views
Issue with creating multiple instances of Prisma client when connecting to Google Cloud SQL in Next.js
Summary
I'm working on a Next.js application, and I'm using the Prisma ORM to interact with a PostgreSQL database. Initially, I was using Prisma with a local PostgreSQL database, and I had a single ...
0
votes
0
answers
17
views
Socket-io disconnect event not getting triggered
So i wanted to make userstatus by updating prisma database on connect event and disconnect event of socket-io in nextjs. The disconnect event is not getting fired. It feels like NextResponse have ...
1
vote
1
answer
125
views
Is my SQLite Prisma schema set up correctly for many-to-many relations? I'm getting an error when using the Prisma Studio to setup a dummy user
This is my first time working with a backend, in this case i'm using the Prisma ORM with a SQLite db within Next.js. as an overview of how i intend my data work:
Users have access to Boards which can ...
-3
votes
1
answer
422
views
GET http://localhost:3000/ 500 (Internal Server Error)
Yesterday I had to add some changes to my database table and all the data was lost, which it wasn't a problem because I'm just developing the project. The problem arises after I did that. I started to ...
1
vote
0
answers
144
views
How to resolve `Error: Command was killed with SIGABRT (Aborted): npm i [email protected] -D`?
We had to change a few things on our app while rebranding (just domain name, nothing major). Pushing the app to the same repo, branch somehow threw an error. Now, the error is Error: Command was ...
2
votes
1
answer
1k
views
How to run prisma migrations when creating a docker container file? [duplicate]
I have a nextjs app that uses prisma with a mysql database. I can succesfully create the containers and get the app working, but i must go in the docker terminal and manually run
npx prisma migrate ...
0
votes
0
answers
131
views
@auth/prisma-adapter how to configure auth.ts?
I'm currently following a tutorial making a AirBnb clone with Next.js. In the register functionality chapter when adding the prisma adapter, the 2023 set up on https://authjs.dev/reference/adapter/...
0
votes
0
answers
69
views
Error: Command failed with exit code 1: ts-node --compiler-options {"module":"CommonJS"} prisma/seed.ts. prisma
package.json
{
"private": true,
"prisma": {
"seed": "ts-node --compiler-options {\"module\":\"CommonJS\"} prisma/seed.ts"
},
&...
0
votes
0
answers
64
views
NextJS and Prisma (MongoDB) Error: Invalid Invocation
I have been following an online tutorial for a NextJS e-commerce website made by Coding in Flow. Here is the video: https://www.youtube.com/watch?v=AaiijESQH5o&t=2885s.
Everything was going ...
0
votes
0
answers
82
views
Invalid prisma.listing.findMany() invocation:
I'm developing a Next.js 13 application, utilizing Prisma as my ORM to interact with a MongoDB database. I've encountered an issue when trying to use the prisma.listing.findMany() method to retrieve ...
1
vote
1
answer
1k
views
Why am I getting a P2003 Foreign Key Constraint Prisma Error?
I am building a website with NextJS, Prisma, PostgreSQL, and Clerk for authentication.
I am using Clerk webhooks to send user data to my PostgreSQL database.
Following the Clerk guide, I created an ...