Closed tharakabimal closed 1 year ago
Update:
• Ran yarn turbo run build
from the root folder
• cd site
& yarn dev
and now I get this 👇🏻
`source` does not start with / for route {"source":"http://localhost:3000/:path*","destination":"http://localhost:4000/shop-api/:path*"}
Try installing the dependencies using the following in the directory you installed yarn:
For commerce.js:
yarn workspace @vercel/commerce run build
For local:
yarn workspace @vercel/commerce-local run build
For anything else just switch out the @vercel/... for whatever package is missing.
Same issue here, GoodChems suggestion doesn't work with yarn workspace @vercel/commerce-bigcommerce run build.
yarn turbo run build
in the root folder and then cd site && yarn dev
worked for me thanks @tharakabimal
@tharakabimal see if this helps overriding the build command to cd .. && yarn build
https://github.com/vercel/commerce/issues/681#issuecomment-1046152179
Spinning up a local dev environment was working for me 16 days ago, March 4, but I ran into this error today. @GoodChem's comment solved it for me!
yarn workspace @vercel/commerce run build
yarn workspace @vercel/commerce-local run build
yarn workspace @vercel/commerce-shopify run build
after cloning this repo, and yarn install
- the issue for me was that next.config
was trying to importnode_modules/@vercel/commerce-local/dist
which for some reason was not present (all other builds dist
for eg. commerce-shopify
were there).
running yarn build
in packages
solved this issue.
Still happening to me and none of the solutions worked for me. I spent only 2 hours trying to run this project locally. It runs on the vercel but can't get it working locally. Has this happened to anyone else recently?
Hey there! Thank you for opening this issue. We have decided to take Next.js Commerce in a new direction and will be closing out current PRs and issues due to this change. Please see this PR for more details: https://github.com/vercel/commerce/pull/966
How I ended up here
.env.local
cd site
andyarn dev
.env.local
👇🏻