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
140 stars 37 forks source link

error: Company id not found: undefined #101

Open fxmb opened 2 days ago

fxmb commented 2 days ago

When I create a company and then click on one e.g. url: http://localhost:9000/app/companies/comp_01JD5ADY8P8Q0QHTRE3R2XYY9R

I ge this error:

backend:dev: error: Company id not found: undefined backend:dev: MedusaError: Company id not found: undefined

And below screen.

Anyone knows what might be going on?

image
VariableVic commented 1 day ago

Hey @fxmb, this might be a dependency issue. Can you try to install react-router-dom in apps/backend and see if this solves the problem?

yarn add react-router-dom 
fxmb commented 1 day ago

Added it:

"react-router-dom": "^6.28.0",

Issue persists unfortunately