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

pnpm dev error #30

Closed
rndy28 opened this issue Oct 8, 2022 · 14 comments
Closed

pnpm dev error #30

rndy28 opened this issue Oct 8, 2022 · 14 comments

Comments

@rndy28
Copy link
Contributor

rndy28 commented Oct 8, 2022

Hi there, iam experiencing an issue after running pnpm dev

reproduce:

git clone https://github.com/t3-oss/create-t3-turbo
cd create-t3-turbo && pnpm i
// change db provider in prisma.schema
echo DATABASE_URL=file:./db.sqlite >> packages/db/.env
pnpm db-push
pnpm dev
// open localhost:3000

logs

@acme/nextjs:dev: error - Error: ENOENT: no such file or directory, open '/home/rndy/Documents/programming-related/Projects/portfolios/goodiebook-turborepo/apps/nextjs/.next/server/pages/api/trpc/schema.prisma'
@acme/nextjs:dev:     at Object.openSync (node:fs:594:3)
@acme/nextjs:dev:     at Object.readFileSync (node:fs:462:35)
@acme/nextjs:dev:     at new LibraryEngine (webpack-internal:///(api)/../../packages/db/node_modules/@prisma/client/runtime/index.js:26943:41)
@acme/nextjs:dev:     at PrismaClient.getEngine (webpack-internal:///(api)/../../packages/db/node_modules/@prisma/client/runtime/index.js:31383:16)
@acme/nextjs:dev:     at new PrismaClient (webpack-internal:///(api)/../../packages/db/node_modules/@prisma/client/runtime/index.js:31355:29)
@acme/nextjs:dev:     at eval (webpack-internal:///(api)/../../packages/db/index.ts:8:16)
@acme/nextjs:dev:     at Object.(api)/../../packages/db/index.ts (/home/rndy/Documents/programming-related/Projects/portfolios/goodiebook-turborepo/apps/nextjs/.next/server/pages/api/trpc/[trpc].js:374:1)
@acme/nextjs:dev:     at __webpack_require__ (/home/rndy/Documents/programming-related/Projects/portfolios/goodiebook-turborepo/apps/nextjs/.next/server/webpack-api-runtime.js:33:42)
@acme/nextjs:dev:     at eval (webpack-internal:///(api)/../../packages/api/src/context.ts:6:66)
@acme/nextjs:dev:     at Object.(api)/../../packages/api/src/context.ts (/home/rndy/Documents/programming-related/Projects/portfolios/goodiebook-turborepo/apps/nextjs/.next/server/pages/api/trpc/[trpc].js:330:1) {
@acme/nextjs:dev:   errno: -2,
@acme/nextjs:dev:   syscall: 'open',
@acme/nextjs:dev:   code: 'ENOENT',
@acme/nextjs:dev:   path: '/home/rndy/Documents/programming-related/Projects/portfolios/goodiebook-turborepo/apps/nextjs/.next/server/pages/api/trpc/schema.prisma',
@acme/nextjs:dev:   clientVersion: '4.4.0'
@acme/nextjs:dev: }

issue still persisted after adding shamefully-hoist="true" to .npmrc

@juliusmarminge
Copy link
Member

Have you tried running a pnpm clean and reinstalled the devs after adding the .npmrc?

@juliusmarminge
Copy link
Member

Can't repro with your steps:

CleanShot 2022-10-08 at 15 10 16

CleanShot 2022-10-08 at 15 10 58

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

Thank your for the quick response. Its working now, but new error pop up

2022-10-08-20:19:59-screenshot

@juliusmarminge
Copy link
Member

Thank your for the quick response. Its working now, but new error pop up

2022-10-08-20:19:59-screenshot

Again, I wasn't able to repro with your steps, you have a repo I can check? Are you getting this error if you pull a fresh version?

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

Thank your for the quick response. Its working now, but new error pop up
2022-10-08-20:19:59-screenshot

Again, I wasn't able to repro with your steps, you have a repo I can check? Are you getting this error if you pull a fresh version?

No i dont have, i dont get what you're saying, but iam just clone the repo and then follow the quick start in the readme

@juliusmarminge
Copy link
Member

Here's a video of me pulling a fresh version without any errors: https://share.cleanshot.com/kgejQR

What node and pnpm versions you on?

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

Here's a video of me pulling a fresh version without any errors: https://share.cleanshot.com/kgejQR

What node and pnpm versions you on?

pnpm: 7.11.0
node: 16.17.1

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

I also try change trpc version following this #15, but the error still there

@juliusmarminge
Copy link
Member

can you push your repo and I can check if I get the error?

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

can you push your repo and I can check if I get the error?

here

@juliusmarminge
Copy link
Member

Cool yea I got the error now, I can see you're on a bit old versions and since you haven't really started yet, I'd recommend just cloning the latest version of this repo and start from there

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

ohh, ok. Thank you!

@rndy28 rndy28 closed this as completed Oct 8, 2022
@juliusmarminge
Copy link
Member

reopen if the issue still persists after you pull latest

@rndy28
Copy link
Contributor Author

rndy28 commented Oct 8, 2022

reopen if the issue still persists after you pull latest

Its working smoothly now. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants