Nuxt Layers in monorepo needs dependencies to be included in both the app and layer
Hi All, we're currently stuck on an issue in our project. We want to define a base for our project, this base includes a default nuxt-config with our modules etc. However once we add this base to our applications we also have to specifically add the module packages in the app package.json. For us the wanted behaviour that everything is defined once in the base, so also the dependencies. Is this a limitation with Layers? Or are we missing something?
We're using pnpm workspaces with turbo to manage the monorepo.
6 Replies
I created a gist to show how the nuxt.config & package are setup for both the layer & app:
https://gist.github.com/martinrisseeuw/616b68225ddc8c40fe636b914a4b0eec
Unknown User•11mo ago
Message Not Public
Sign In & Join Server To View
I tried to do this. However this seems to be for when you use a github repo as extend. Within a monorepo it seems to not make a difference unfortunatly.
Unknown User•11mo ago
Message Not Public
Sign In & Join Server To View
Yea, let's do that 🙂
Unknown User•10mo ago
Message Not Public
Sign In & Join Server To View