Join the conversation

Sign in to join this conversation, and others like it, in the communities you care about.

ZEIT

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

ZEIT / Now

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?

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?

ZEIT/Now · December 19, 2018 at 3:00am

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?

ZEIT / Now · December 19, 2018 at 3:00am (Edited 1 month 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

  • reply
  • like

December 21, 2018 at 5:04pm

It’s the exact same problem we have had today. Would love to see yarn workspaces functioning

  • reply
  • like

Log in or sign up to chat