Do I need to install dependencies of Layers I am extending in a monorepo?
If I don't install the dependencies of Layer I am extending, I get errors that modules can be found. I've tried several things. But the solutions don't work for all dependencies and are inconsistent...
Here is an example:
/base-layer
nuxt.config.ts
package.json
/other-layer
nuxt.config.ts
package.json
`4 Replies
We need to install manually install the packages in each project yeah, but not using a monorepo over here. https://github.com/unjs/c12/issues/51. Regarding the vuetify error I assume the vuetify package.json just doesnt sit in the root of the module
@warflash I saw this issues and also others. They always mention remote sources as the problem, but do not mention local dependenices (monorepos). That's why I was expecting it to work for me, but it seems like it doesn't.
It's really annoying if you have 5 layers and have to sync all dependencies manually.
Yeah it's a pain keeping them all in sync and having so much duplicate config stuff
But since pinia is resolving for you I'm pretty sure the error comes from the vuetify package json path and not general dependency installs missing
Well, for me "working" would mean: You don't have to do do any aliasing of the packages. But here I have to do the aliasing manually. Meh.
I hoped Layers would help me get cleaner code with less complexity, but here we also have to add some complexity to even use it properly.