Kissle
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
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
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
See: https://nuxt.com/docs/guide/going-further/layers#named-layer-aliases12 replies