Linking local sibling package in monorepo doesn't work #5289
Replies: 5 comments
-
I have the exact same issue! @JohannesKlauss have you been able to fix it somehow? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue |
Beta Was this translation helpful? Give feedback.
-
If you delete the build folders of the shared packages locally and try to build the nextjs package, does it still build successfully? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same problem. Did you solve it? |
Beta Was this translation helpful? Give feedback.
-
I'm having the same issue. |
Beta Was this translation helpful? Give feedback.
-
I have a github repo, that is linked to my vercel account. Inside are several packages, that I want to auto deploy via vercel.
The issue is that the deployment doesn't recognize my local sibling packages and then it fails, because yarn complains, that it cannot find
@project/gql
.This is my project setup:
My root package.json
My lerna.json
And inside my nextjs package is the following package.json
Locally it works just fine, but I guess vercel doesn't recognize the that it is a local package. I did check the
Include source files outside of the Root Directory in the Build Step.
option.The root directory for the nextjs app is set to this
packages/page
.Is there anything I am missing?
Beta Was this translation helpful? Give feedback.
All reactions