engoyan
engoyan
NNuxt
Created by engoyan on 7/26/2024 in #❓・help
Nuxt Layers & dependencies
It is a bit confusing after reading the nuxt docs where to put layer dependencies. Given a layer myLayer (with pinia nuxt module) and a nuxt app with extends: ["./myLayer"], : 1. where to put pinia (or any other) node module, in myLayer/package.json or app/package.json? 2. is it required to run npm install from inside 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 npm run preview .
5 replies