In case anyone is using Nuxt 4 compatibility mode, make sure that the layouts folder is inside the app folder (where your app.vue is located)