medusajs / b2b-starter-medusa

Official Medusa B2B Starter template. Features common B2B ecommerce requirements and can be easily adapted and extended.
https://dub.sh/medusa-b2b-starter
MIT License
141 stars 42 forks source link

Having error with yarn dev #73

Closed tirocoder closed 4 weeks ago

tirocoder commented 1 month ago

Hello friends, I am running the yarn dev by following the instructions in the readme file, but I am getting this error. It can't run the backend.

My versions: Yarn 4.5.0, turbo 2.2.3, node v20.18.0, PostgreSQL 17.0 (Ubuntu 17.0)

medusa-next:dev: cache bypass, force executing cf514a592c20e019 medusa-starter-default:dev: cache bypass, force executing a3f903430a4522a6 medusa-starter-default:dev: --------------- ERROR --------------------- medusa-starter-default:dev: TypeError [ERR_INVALID_ARG_TYPE]: The "id" argument must be of type string. Received undefined medusa-starter-default:dev: at Module.require (node:internal/modules/cjs/loader:1304:3) medusa-starter-default:dev: at require (node:internal/modules/helpers:179:18) medusa-starter-default:dev: at resolveLocalCommand (/usr/lib/node_modules/@medusajs/medusa-cli/dist/create-cli.js:33:20) medusa-starter-default:dev: at /usr/lib/node_modules/@medusajs/medusa-cli/dist/create-cli.js:46:30 medusa-starter-default:dev: at Object.handler (/usr/lib/node_modules/@medusajs/medusa-cli/dist/create-cli.js:16:21) medusa-starter-default:dev: at Object.runCommand (/usr/lib/node_modules/@medusajs/medusa-cli/node_modules/yargs/build/lib/command.js:196:48) medusa-starter-default:dev: at Object.parseArgs [as _parseArgs] (/usr/lib/node_modules/@medusajs/medusa-cli/node_modules/yargs/build/lib/yargs.js:1043:55) medusa-starter-default:dev: at Object.parse (/usr/lib/node_modules/@medusajs/medusa-cli/node_modules/yargs/build/lib/yargs.js:584:29) medusa-starter-default:dev: at exports.default (/usr/lib/node_modules/@medusajs/medusa-cli/dist/create-cli.js:353:10) medusa-starter-default:dev: at Object. (/usr/lib/node_modules/@medusajs/medusa-cli/dist/index.js:38:26) { medusa-starter-default:dev: code: 'ERR_INVALID_ARG_TYPE' medusa-starter-default:dev: } medusa-starter-default:dev: ------------------------------------------- medusa-starter-default:dev: medusa develop