prisma v7 has so many problems working with turborepo and there is so much less documentations available that even llms are not giving the correct answers!!! I might need to shift to prisma 6
I eventually got things working by downgrading from Prisma 7 to Prisma 6.
The main issues I faced were around the new prisma-client generator in a modern Next.js setup using:
Next.js 16 + Turbopack
Turborepo monorepo
NextAuth v5
Edge middleware
custom generated Prisma output
The biggest confusion points:
Module not found: Can't resolve './enums.js'
Happened when Prisma client leaked into middleware/edge runtime indirectly through NextAuth imports.
The error message made it feel like a missing file issue instead of an Edge Runtime incompatibility/bundling issue.
The distinction between:
provider = "prisma-client"
vs provider = "prisma-client-js"was not very obvious initially.The newer generator + custom output + Turbopack created resolution problems that disappeared after switching back to Prisma 6 / prisma-client-js.
Monorepo ergonomics were tricky:
stale generated clients
mixed imports between generated output and @prisma/client
Turbopack caching
unclear regeneration state
NextAuth + middleware:
importing Prisma indirectly inside middleware caused Edge runtime crashes.
Took a while to realize auth config must be split into:
edge-safe config
node-only Prisma config
Suggestions:
clearer warnings/errors when Prisma client is bundled into Edge runtime
better migration docs/examples specifically for:
Turborepo
Next.js 16
Turbopack
NextAuth v5
more explicit docs on when to use prisma-client vs prisma-client-js
better stale generation detection/caching diagnostics in monorepos
Once I switched to Prisma 6, everything became stable immediately.
apart from obvious reasons, i hate the day when i am not producing anything or not doing something difficult . Earlier it used to be fun sleeping all day and watching movies but now i realized it's kinda sad and depressing. besides we as human have curious mind to learn new things we have interests and passion we must follow them.
so many people treated boys like it was some sort of blessing or what!! It had really good( not great ) first 3 seasons after that the show was kinda mid. each characters does things out of their arc( if they have any ) same structure homelander’s gonna kill all and we gotta kill him( literally this carried on for 4 seasons)
Today's logs: (7 hrs)
=> Learnt about different ai models, difference between llm and chatmodels. Tested open source and closed source ai models. Created small CLI based chatbot.
=> Designed database design for my code-royale project with the help of claude. Set up prisma with neondb and generated prisma client.
@Shivam675int thiss was the question which made me aware about dp, i solved it with recursion last year easily and it gave me tle and i thought no way then i search about it and found out about dp
Few days ago I shifted from windows to fedora(linux) and the experience has been amazing!
->It is faster and uses less battery. In terms of coding and productivity its better than windows.
->the only problem i have faced so far is in multimedia, sometimes when using vlc there was imbalance in my headphones.
btw it looks beautiful✨
from now on i will share my development journey here!
Today's logs: ( 6 hrs )
=>Started Learning Genai from @campusx_ playlist, learned about basics of langchain and its components.
=>Started building a battle royale like platform but for coding. Initialized the monorepo and got some basic idea about the system architect using claude.
here's the repo:
github.com/prithq/code-ro…
713 Followers 910 FollowingBtech CSE(2nd year)
| c/c++| DSA | Cf-1514| Stock| AI/ML |Geopolitics | currently creating a special application for College student
139 Followers 327 FollowingI thrive regardless ✧ In tech for the sake of it ✧ Web2 ✧ Web3 ✧ Devops ✧ Building Sedim & Groundwork ✧ All things Open Source
4K Followers 2K FollowingAdvocates Common Sense Revolution! | I unmask the counterfeit |Proud Sanatani🕉️| Disclaimer: This page rejects #Wokeism #Terrorism #Psychopaths
5K Followers 424 Following22 yo.
i make videos on web3 & ai.
launch videos & tech media maximalist.
ex-programmer (side quest complete).
building @LaunchGalleryHQ
21K Followers 1K FollowingCofounder and CEO of @GreyLabsAI | ex-cofounder @CognoAI (acquired by @Exotel) | Lesser half to @harshitaiitk | @iitbombay Alum
1K Followers 100 FollowingThe world's first scenario-based voice AI assistant.
No typing. No switching tabs.
Speak your ideas. Get instant results.
Free to try ↓
5K Followers 853 FollowingCode artist
Building startup MVPs and fast prototypes for Founders
Next.js • Three.js
Call: https://t.co/rzLElv5lVo
Sketches: https://t.co/GQIKO8UIUO