`sst-prisma` it does not "just works" on initial setup.. fails on `pnpm start`
Closed this issue · 6 comments
Hi I was doing the initial setup and run pnpm install
and pnpm start
and I'm getting
cp: /Users/federicodayan/projects/sst/sst-prisma/web/.next/standalone/web/.next/required-server-files.json: No such file or directory
I was getting a esbuild
version problem: Cannot start service: Host version "0.15.16" does not match binary version "0.14.51"
, but I added "esbuild": "0.14.51"
to root package.json
and that fixed it.
This is the screenshot of the full error:
That's an issue with the nextjs construct dep. SST2 is coming out very soon with a new and improved NextjsSite construct. I will update this repo to use these when it's more stable.
Yes for now hardcoding esbuild should get you through it. Thanks.
Yes for now hardcoding esbuild should get you through it. Thanks.
I added esbuild in every package.json
in the repo, and I'm still getting the same error. The error message itself is not helpful, and it's not clear what needs to be done to solve this.
I think people are going to need more detail than just "hardcode esbuild" because, at least to me, it isn't clear what this means.
I spent about two hours debugging this. Unfortunately I'm just going to have to give up on this template. I don't think the solution is as simple as "hardcode esbuild".
Ok, I will try to update to NextjsSite in SST2 this week, should make things better
Can you please give the latest master version a try?
It is now pnpm dev
to be consistent with SST2 and next
Please let me know if any further issues. This should be resolved now