It is a bit confusing after reading the nuxt docs where to put layer dependencies.
Given a layer
myLayer
myLayer
(with pinia nuxt module) and a nuxt app with
extends: ["./myLayer"],
extends: ["./myLayer"],
:
1. where to put pinia (or any other) node module, in
myLayer/package.json
myLayer/package.json
or
app/package.json
app/package.json
? 2. is it required to run
npm install
npm install
from inside
myLayer
myLayer
? 3. if both layer and the app have the same package dependencies where to define it?
p.s. I tried different combinations, and have an issue when a basic setup with a pinia layer works fine in dev mode, but breaks component "reactivity" when run via preview