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.
Solution:
output = "../node_modules/.prisma/client"
Jump to solution
24 Replies
Neto
Neto5mo ago
did you run prisma generate?
D y l a n
D y l a n5mo ago
yes mate, nothing
Neto
Neto5mo ago
what is the setup that you choose for the t3 app?
D y l a n
D y l a n5mo ago
everything yes, app router aswell
Neto
Neto5mo ago
did you pick nextauth? and sqlite/mysql/pg/pscale?
D y l a n
D y l a n5mo ago
i did yes postgresql
Neto
Neto5mo ago
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
D y l a n
D y l a n5mo ago
weird,
Neto
Neto5mo ago
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 3522ms
D y l a n
D y l a n5mo ago
ive tried uninstall and reinstalling npm and node this is my second time trying t3 stack
Neto
Neto5mo ago
you can try a new setup and see if that happens
D y l a n
D y l a n5mo ago
well in last couple days normally works fine
Neto
Neto5mo ago
did you remove the .next and node_modules?
D y l a n
D y l a n5mo ago
let me give that a go doing this over and over makes me realise how shit my wifi is yeah still same issue
Neto
Neto5mo ago
you should try a new setup and see if the same thing happens
Want results from more Discord servers?
Add your server