Cannot find module whenever running 'npm run dev' on t3 app
Cannot find module '/Users/dylanosullivan/Documents/runtime/library.jsruntime/library.jsPersonal/pagewriter/pagewriterapp/node_modules/@prisma/client/runtime/library.
24 Replies
did you run prisma generate?
yes mate, nothing
what is the setup that you choose for the t3 app?
everything yes, app router aswell
did you pick nextauth?
and sqlite/mysql/pg/pscale?
i did yes
postgresql
did you try to run the setup again?
i ran and had no issues
│
◇ What will your project be called?
│ dylan
│
◇ Will you be using TypeScript or JavaScript?
│ TypeScript
│
◇ Will you be using Tailwind CSS for styling?
│ Yes
│
◇ Would you like to use tRPC?
│ Yes
│
◇ What authentication provider would you like to use?
│ NextAuth.js
│
◇ What database ORM would you like to use?
│ Prisma
│
◇ Would you like to use Next.js App Router?
│ Yes
│
◇ What database provider would you like to use?
│ PostgreSQL
│
◇ Should we initialize a Git repository and stage the changes?
│ Yes
│
◇ Should we run 'bun install' for you?
│ Yes
│
◇ What import alias would you like to use?
│ ~/
Using: bun
✔ dylan scaffolded successfully!
Adding boilerplate...
✔ Successfully setup boilerplate for nextAuth
✔ Successfully setup boilerplate for prisma
✔ Successfully setup boilerplate for tailwind
✔ Successfully setup boilerplate for trpc
✔ Successfully setup boilerplate for dbContainer
✔ Successfully setup boilerplate for envVariables
✔ Successfully setup boilerplate for eslint
Installing dependencies...
✔ Successfully installed dependencies!
Initializing Git...
✔ Successfully initialized and staged git
weird,
Next steps:
cd dylan
Start up a database, if needed using './start-database.sh'
bun run db:push
bun run dev
git commit -m "initial commit"
Thank you for trying out the App Router option. If you encounter any issues, please open an issue!
⋊> /tmp cd dylan/ 16:01:06
⋊> /t/dylan on main ⨯ zed . 16:01:08
⋊> /t/dylan on main ⨯ bun run db:push 16:01:14
$ prisma db push
Environment variables loaded from .env
Prisma schema loaded from prisma/schema.prisma
Datasource "db": PostgreSQL database "t3", schema "public" at "localhost:5432"
🚀 Your database is now in sync with your Prisma schema. Done in 99ms
✔ Generated Prisma Client (v5.13.0) to ./node_modules/@prisma/client in 46ms
⋊> /t/dylan on main ⨯ bun run dev
⋊> /t/dylan on main ⨯ bun run dev 16:02:01
$ next dev
▲ Next.js 14.2.3
- Local: http://localhost:3000
- Environments: .env
✓ Starting...
✓ Ready in 2.6s
(node:30343) [DEP0040] DeprecationWarning: The
punycode
module is deprecated. Please use a userland alternative instead.
(Use node --trace-deprecation ...
to show where the warning was created)
○ Compiling / ...
✓ Compiled / in 3.1s (1014 modules)
[next-auth][warn][NO_SECRET]
https://next-auth.js.org/warnings#no_secret
GET / 200 in 3522msive tried uninstall and reinstalling npm and node
this is my second time trying t3 stack
you can try a new setup and see if that happens
well
in last couple days
normally works fine
did you remove the .next and node_modules?
let me give that a go
doing this over and over makes me realise how shit my wifi is
yeah still same issue
you should try a new setup and see if the same thing happens
might be a sign to learn drizzle
yeah
prisma isnt the most fun to use
that works, looks like im learning drizzle
:sanchOooooooo:
apparently a lot of people have been getting it with the new prisma version
thanks for you help btw !
np
sadly the issue was prisma itself
Solution
output = "../node_modules/.prisma/client"
adding this line fixed it
what a load of fucking bollocks
pardon my french
prisma lolxD