Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Medusa is not working with turborepos #5544

Closed
Xxsource98 opened this issue Nov 3, 2023 · 2 comments
Closed

Medusa is not working with turborepos #5544

Xxsource98 opened this issue Nov 3, 2023 · 2 comments

Comments

@Xxsource98
Copy link

Bug report

Describe the bug

Hi, I am working on a turborepo project where I would like to use medusa with nextjs and some custom packages. First problem is that I can not start medusa app with turbo run dev. Possible fix is disable hoisting in package.json for yarn workspaces for modules like @medusajs/admin, @medusajs/medusa...
Okay it got fixed, but when I want to use custom package with my custom payment processor from package/ directory medusa isn't reading services from that. Subscribers works fine but I can not use my custom services like fulfillment service or payment processor. But when I put my custom package in node_modules in medusa project directory then it works fine. It seems like linking not working.
Is medusa even "supported" by turborepos? Is there any ways to fix it?

System information

Medusa version (including plugins): 1.17.2
Node.js version: 18.71.1
Database: postgres
Operating system: Ubuntu 22.04
Browser (if relevant): Brave

Screenshots

image

@vholik
Copy link

vholik commented Nov 22, 2023

I solved this problem when using yarn workspaces monorepository. yarn add @medusajs/medusa solved this problem

@sradevski
Copy link
Member

Medusa v2.0 is supported with a turborepo setup (we have a couple running like that already). We won't be adding any support for v1 unfortunately, so I'll close this ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants