Monorepo pnpm workspace problem
Unanswered
Canvasback posted this in #help-forum
CanvasbackOP
I have a monorepo structure:
next-app (Next.js app)
microservice-chat (Node.js express server for chat implementation)
common (A common shared package between the two)
How can I achieve this by connecting next-app and microservice-chat to use common as an independent package?
next-app (Next.js app)
microservice-chat (Node.js express server for chat implementation)
common (A common shared package between the two)
How can I achieve this by connecting next-app and microservice-chat to use common as an independent package?
4 Replies
are you using pnpm/turborepo to do the monorepo?
if so, you can add the name of your common package (the name in package.json) to your apps' own package.json as dependencies, with the version of "workspace:*"
Asian black bear
To ensure you get the best possible assistance, could you please change your thread title to be more descriptive? Specific titles attract the attention of users who can help and make it easier for others to find similar solutions in the future.
CanvasbackOP
I managed to get it to work using pnpm workspaces.
I changed the title, hopefully It's more clear now.
I changed the title, hopefully It's more clear now.