commerce icon indicating copy to clipboard operation
commerce copied to clipboard

yarn run dev is not working

Open devnajam opened this issue 3 years ago • 15 comments

yarn run dev yarn run v1.22.18 $ turbo run dev • Packages in scope: @vercel/commerce, @vercel/commerce-bigcommerce, @vercel/commerce-commercejs, @vercel/commerce-kibocommerce, @vercel/commerce-local, @vercel/commerce-ordercloud, @vercel/commerce-saleor, @vercel/commerce-shopify, @vercel/commerce-spree, @vercel/commerce-swell, @vercel/commerce-vendure, next-commerce, taskr-swc • Running dev in 13 packages @vercel/commerce-swell:dev: cache miss, executing 369355c6aae2fd58 next-commerce:dev: cache miss, executing 84bfc33760fdf5f1 @vercel/commerce-spree:dev: cache miss, executing cae9e02ae640a7a7 @vercel/commerce-vendure:dev: cache miss, executing 52c13fcf5ba30dac @vercel/commerce-ordercloud:dev: cache miss, executing 58e0c6bc1647f90d @vercel/commerce-bigcommerce:dev: cache miss, executing e68c165024c85074 @vercel/commerce-local:dev: cache miss, executing ed77d1899a2860ea @vercel/commerce:dev: cache miss, executing 5eefe2687b22310b @vercel/commerce-commercejs:dev: cache miss, executing 3aa1d95d9d0db027 @vercel/commerce-shopify:dev: cache miss, executing 3f1b4684525f7ea6 @vercel/commerce-vendure:dev: $ taskr @vercel/commerce-spree:dev: $ taskr next-commerce:dev: $ next dev @vercel/commerce-bigcommerce:dev: $ taskr @vercel/commerce:dev: $ taskr @vercel/commerce-commercejs:dev: $ taskr @vercel/commerce-swell:dev: $ taskr @vercel/commerce-ordercloud:dev: $ taskr @vercel/commerce-local:dev: $ taskr @vercel/commerce-shopify:dev: $ taskr @vercel/commerce-spree:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\spree\taskfile.js @vercel/commerce-spree:dev: [14:41:50] Starting default @vercel/commerce-spree:dev: [14:41:50] Starting build @vercel/commerce-spree:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-spree:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-spree:dev: Task chain was aborted! next-commerce:dev: ready - started server on 0.0.0.0:3000, url: http://localhost:3000 next-commerce:dev: info - Loaded env from D:\Code\Job\nft-store\site.env.local @vercel/commerce-vendure:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\vendure\taskfile.js @vercel/commerce-vendure:dev: [14:41:50] Starting default @vercel/commerce-vendure:dev: [14:41:50] Starting build @vercel/commerce-vendure:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-vendure:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-bigcommerce:dev: Task chain was aborted! @vercel/commerce-vendure:dev: Task chain was aborted! @vercel/commerce-bigcommerce:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\bigcommerce\taskfile.js @vercel/commerce-bigcommerce:dev: [14:41:50] Starting default @vercel/commerce-bigcommerce:dev: [14:41:50] Starting build @vercel/commerce-bigcommerce:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-bigcommerce:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-swell:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\swell\taskfile.js @vercel/commerce-swell:dev: [14:41:50] Starting default @vercel/commerce-swell:dev: [14:41:50] Starting build @vercel/commerce-swell:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-swell:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-commercejs:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\commercejs\taskfile.js @vercel/commerce-commercejs:dev: [14:41:50] Starting default @vercel/commerce-commercejs:dev: [14:41:50] Starting build @vercel/commerce-commercejs:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-commercejs:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-swell:dev: Task chain was aborted! @vercel/commerce-commercejs:dev: Task chain was aborted! @vercel/commerce:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\commerce\taskfile.js @vercel/commerce:dev: [14:41:50] Starting default @vercel/commerce:dev: [14:41:50] Starting build @vercel/commerce:dev: Task chain was aborted! @vercel/commerce:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-local:dev: Task chain was aborted! @vercel/commerce-bigcommerce:dev: error Command failed with exit code 1. @vercel/commerce-bigcommerce:dev: [14:41:50] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. @vercel/commerce-spree:dev: error Command failed with exit code 1. @vercel/commerce-spree:dev: [14:41:50] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. @vercel/commerce-local:dev: [14:41:50] Running with D:\Code\Job\nft-store\packages\local\taskfile.js @vercel/commerce-local:dev: [14:41:50] Starting default @vercel/commerce-local:dev: [14:41:50] Starting build @vercel/commerce-local:dev: [14:41:50] build failed because task.source(...).swc is not a function @vercel/commerce-local:dev: [14:41:50] default failed because task.source(...).swc is not a function @vercel/commerce-vendure:dev: error Command failed with exit code 1. @vercel/commerce-vendure:dev: [14:41:50] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. @vercel/commerce-bigcommerce:dev: Error: command finished with error: exit status 1 error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

image

devnajam avatar Apr 10 '22 14:04 devnajam

I have set the env variables for commerce js, it was working before but stopped working when recloned the project

devnajam avatar Apr 10 '22 14:04 devnajam

@devnajam can you try yarn build in the root directory before you run yarn dev and check the result.

dominiksipowicz avatar Apr 11 '22 15:04 dominiksipowicz

Can confirm that doing yarn build in the root dir before yarn dev works on mine.

MostlyWhat avatar Apr 14 '22 07:04 MostlyWhat

I installed Linux and it worked there, the problem i think is with how paths with in windows vs Linux based systems, next commerce is not properly configured to work in windows env

On Thu, Apr 14, 2022, 12:50 PM Pongsupa Supapa @.***> wrote:

Can confirm that doing yarn build in the root dir before yarn dev works on mine.

— Reply to this email directly, view it on GitHub https://github.com/vercel/commerce/issues/732#issuecomment-1098812042, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCXX3PIRCIQZFQU367LNA3VE7E5BANCNFSM5TA5S7TQ . You are receiving this because you were mentioned.Message ID: @.***>

devnajam avatar Apr 14 '22 07:04 devnajam

I'm on windows btw.

MostlyWhat avatar Apr 14 '22 10:04 MostlyWhat

It is going to be very helpful for me if you can tell me your development setup, i can't even run the code when i clone the repo and run it without making any changes, it gives me module not found error and if not that then it gives task.swc is not a function. I can share exact errors with you if you need them to help, thanks

On Thu, Apr 14, 2022, 3:48 PM Pongsupa Supapa @.***> wrote:

I'm on windows btw.

— Reply to this email directly, view it on GitHub https://github.com/vercel/commerce/issues/732#issuecomment-1099060275, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCXX3LEJLPNAA724GJA2GLVE7ZYZANCNFSM5TA5S7TQ . You are receiving this because you were mentioned.Message ID: @.***>

devnajam avatar Apr 15 '22 05:04 devnajam

@devnajam can you try now on Windows please after #728 PR was merged. I have the feeling this should solve your problem.

dominiksipowicz avatar Apr 15 '22 15:04 dominiksipowicz

I'm using WSL 2 on windows and it works great.

tuncatunc avatar Apr 17 '22 02:04 tuncatunc

You mean your code, git and node is installed on Linux subsystem and everything else on windows, can you tell me about your workflow if that is fine. Thanks a lot

On Sun, Apr 17, 2022, 7:51 AM tuncatunc @.***> wrote:

I'm using WSL 2 on windows and it works great.

— Reply to this email directly, view it on GitHub https://github.com/vercel/commerce/issues/732#issuecomment-1100792033, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCXX3NIOMOCGC5YI2KJZ63VFN4D7ANCNFSM5TA5S7TQ . You are receiving this because you were mentioned.Message ID: @.***>

devnajam avatar Apr 18 '22 19:04 devnajam

https://www.omgubuntu.co.uk/how-to-install-wsl2-on-windows-10?amp

tuncatunc avatar Apr 19 '22 00:04 tuncatunc

in your project, do you have this package 'packages/taskr-swc' ? and check ' "taskr-swc": "^0.0.1" in your package-lock file @devnajam

shixin-guo avatar May 09 '22 13:05 shixin-guo

Building then starting the server didn't work for me anybody solved this?

omerfe avatar Aug 12 '22 20:08 omerfe

Which OS are you using?

tuncatunc avatar Aug 12 '22 20:08 tuncatunc

I'm having the same issue

I first clone project:

Error: Couldn't find package "taskr-swc@^0.0.1" required by "@vercel/[email protected]" on the "npm" registry.

yarn version 1.22.17 Macos M1 12.4

hoangbaovu avatar Sep 05 '22 04:09 hoangbaovu

@hoangbaovu did you run yarn & yarn dev in the root folder ?

cond0r avatar Sep 05 '22 09:09 cond0r

Okaay let me try

On Fri, Apr 15, 2022, 8:12 PM Dom Sip @.***> wrote:

@devnajam https://github.com/devnajam can you try now on Windows please after #728 https://github.com/vercel/commerce/pull/728 PR was merged. I have the feeling this should solve your problem.

— Reply to this email directly, view it on GitHub https://github.com/vercel/commerce/issues/732#issuecomment-1100167478, or unsubscribe https://github.com/notifications/unsubscribe-auth/APCXX3NRAO5ROBFRB3TRI4DVFGBO5ANCNFSM5TA5S7TQ . You are receiving this because you were mentioned.Message ID: @.***>

devnajam avatar Oct 11 '22 09:10 devnajam

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

leerob avatar Apr 18 '23 02:04 leerob