N
Nuxt6mo ago
Lannister

Layers under ~/layers not auto-registered in v3.12.1

Nuxt question: Layers under ~/layers not auto-registered in v3.12.1 I've created a small repo with a live version to reproduce it.
root/
└── apps/
├── skriptjobs-app/
└── layers/
├── skriptjobs-public-web/
└── skriptjobs-user-interface/
└── skriptjobs-base/
root/
└── apps/
├── skriptjobs-app/
└── layers/
├── skriptjobs-public-web/
└── skriptjobs-user-interface/
└── skriptjobs-base/
skriptjobs-app is extending 3 layers in nuxt.config.ts
extends: [
// nuxt.config.ts in skriptjobs-app
'@skriptjobs/base',
'layers/skriptjobs-public-web',
'layers/skriptjobs-user-interface'],
extends: [
// nuxt.config.ts in skriptjobs-app
'@skriptjobs/base',
'layers/skriptjobs-public-web',
'layers/skriptjobs-user-interface'],
This way, everything works, no issues. Now, I want the layers in ./layers/** to be auto-registered But its not auto-registering anything, if I dont manually specify the layers manually.
// nuxt.config.ts in skriptjobs-app
extends: ['@skriptjobs/base'],
// nuxt.config.ts in skriptjobs-app
extends: ['@skriptjobs/base'],
What am I doing wrong? I'm running v3.12.1 https://nuxt-layers-registration.vercel.app/ repo: https://github.com/santiagoaloi/nuxt-layers-registration
1 Reply
Lannister
LannisterOP6mo ago
it appears I had wrongly upgraded nuxt , I had differeny nuxt versions in layers
Want results from more Discord servers?
Add your server