Spectrum is now read-only. Learn more about the decision in our official announcement.


Our mission is to make cloud computing as easy and accessible as mobile computing. You can find our Next.js community here.


Could we get an example of how to run a monorepo with Yarn Worspaces and/or…

December 19, 2018 at 3:00am
The ZEIT community has a new home. This thread is preserved for historical purposes. The content of this conversation may be innaccurrate or out of date. Go to new community home →

Could we get an example of how to run a monorepo with Yarn Worspaces and/or Lerna, with a shared library of components for two or more NextJS apps?

December 19, 2018 at 3:00am (Edited 4 years ago)
I'm actually lost on how to make the "shared library" part work. I know those have to be transpiled but I just keep hitting errors.
Perhaps an example of this type of monorepo could showcase the bigger picture for Now 2.0
Please consider it
For anyone else seeing this, leave a comment about how would it be useful to you as that would increase chances of this whole thread being seen by the Zeit team.

December 21, 2018 at 12:44am
Managed to get it working with nwb and publishing a public repo on NPM. Still would love to see an official example from Zeit!! That would be awesome! :D

December 21, 2018 at 5:04pm
It’s the exact same problem we have had today. Would love to see yarn workspaces functioning

January 31, 2019 at 4:58pm
Yup, I second this - we have a lot of shared code between our front-end and back-end and the lack of yarn workspace support within now V2 is a big barrier for us!