mercurjs / mercur

JavaScript Open Source
Multi-Vendor Marketplace Accelerator build on top of Medusa.js. Mercur simplifies the path to your own customized, multi-vendor marketplace.
https://mercurjs.com
MIT License
153 stars 15 forks source link

Seed Error after running yarn seed #3

Closed lokichaulagain closed 3 months ago

lokichaulagain commented 3 months ago

image

cwierzbicki00 commented 3 months ago

Need to install the medusa cli.

Make sure you have run yarn install in the api directory before installing.

Otherwise,

Run

yarn add @medusajs/medusa-cli

The readme set-up clearly assumes some prior medusa set-up knowledge.

Once you get past this as well, the seed may fail with some error like

Cannot read property 'Symbol(Symbol.iterator)' of undefined

you can solve by adding

"products": []

to the data/seed.json

I have just resolved this myself, will open PR sometime soon. Will also propose changes to the readme.

NicolasGorga commented 3 months ago

Experienced the same issue, solved it with @cwierzbicki00 let me know if you'll open the PR, otherwise i can gladly do it!

gtomaka commented 3 months ago

Thanks for sharing all info guys. The PR with fix is already merged.

When you configure a project, you need to execute yarn in /api as descibed in README.

gtomaka commented 3 months ago