N
Nuxt11mo ago
Tinus

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
Tinus
TinusOP11mo ago
I created a gist to show how the nuxt.config & package are setup for both the layer & app: https://gist.github.com/martinrisseeuw/616b68225ddc8c40fe636b914a4b0eec
Gist
Layers example
Layers example. GitHub Gist: instantly share code, notes, and snippets.
Unknown User
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Tinus
TinusOP11mo ago
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
Unknown User11mo ago
Message Not Public
Sign In & Join Server To View
Tinus
TinusOP10mo ago
Yea, let's do that 🙂
Unknown User
Unknown User10mo ago
Message Not Public
Sign In & Join Server To View
Want results from more Discord servers?
Add your server