Kissle
Kissle
NNuxt
Created by Joseª on 4/27/2025 in #❓・help
I need help with Design Patterns in Nuxt
Hi @Joseª, did the answer from Kapa.ai help you? I also made quite some effort in comparing the traditional design patterns and recommendation for reuseable code and what is the nuxt-way doing this. I'm happy to build a bridge for you, if you like. Just DM me and we can see how to proceed.
6 replies
NNuxt
Created by Kissle on 4/27/2025 in #❓・help
How to use imports in Layers
This really solved my problem. First it was not intuitive to keep reference the layer while working on the layer, but this solved also my problem with prisma where the client was not found when running the final app.
6 replies
NNuxt
Created by RicharDVD on 3/27/2025 in #❓・help
Explicit import from local Layer
Hi @RicharDVD , I just stumbled on your post since I'm searching for some similar solutions. What might help you, maybe you already tried: You can define the layer name in your nuxt config which results to being able to use imports like: #layers/base/your/file
export default defineNuxtConfig({
$meta: {
name: 'base',
},
...
export default defineNuxtConfig({
$meta: {
name: 'base',
},
...
See: https://nuxt.com/docs/guide/going-further/layers#named-layer-aliases
12 replies