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

Prisma error upon starting #9

Open
ultraslayyy opened this issue Nov 22, 2024 · 3 comments
Open

Prisma error upon starting #9

ultraslayyy opened this issue Nov 22, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@ultraslayyy
Copy link

I get this error upon starting the app and/or when I login

○ Compiling / ...
 ✓ Compiled / in 1899ms (2459 modules)
 ○ Compiling /api/socket/io ...
 ✓ Compiled /api/socket/io in 680ms (1614 modules)
 GET /api/socket/io?EIO=4&transport=polling&t=PDM0wgW 200 in 2212ms
 ⨯ PrismaClientKnownRequestError:
Invalid `prisma.profile.findUnique()` invocation:


The table `public.Profile` does not exist in the current database.
    at async getCurrentProfile (./src/lib/query.ts:53:21)
    at async SideBar (./src/components/layout/side-bar.tsx:25:21)
digest: "2335556490"
 ⨯ PrismaClientKnownRequestError:
Invalid `prisma.profile.findUnique()` invocation:


The table `public.Profile` does not exist in the current database.
    at async initProfile (./src/lib/query.ts:33:21)
    at async Home (page.tsx:19:21)
digest: "2414385466"
 GET /?_rsc=z18gi 200 in 2799ms
 ⨯ PrismaClientKnownRequestError:
Invalid `prisma.profile.findUnique()` invocation:


The table `public.Profile` does not exist in the current database.
    at async initProfile (./src/lib/query.ts:33:21)
    at async Home (page.tsx:19:21)
digest: "2414385466"
 ⨯ PrismaClientKnownRequestError:
Invalid `prisma.profile.findUnique()` invocation:


The table `public.Profile` does not exist in the current database.
    at async getCurrentProfile (./src/lib/query.ts:53:21)
    at async SideBar (./src/components/layout/side-bar.tsx:25:21)
digest: "2335556490"
 GET /?_rsc=1n6pm 200 in 504ms
 ✓ Compiled /favicon.ico in 465ms (1643 modules)
 GET /favicon.ico 200 in 573ms
@ultraslayyy ultraslayyy added the bug Something isn't working label Nov 22, 2024
@issam-seghir
Copy link
Owner

you need to setup neon db

@ultraslayyy
Copy link
Author

How do I set it up? I have it connected, but I don't know how to set it up correctly

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants