Dominic
Dominic
NNuxt
Created by Mathis on 4/19/2024 in #❓・help
How to inject HTML tags from @nuxt/kit
3 replies
NNuxt
Created by szobi on 4/12/2024 in #❓・help
custom modules i n Nuxt Layers
install @nuxt/kit in your modules and use it do get defineNuxtModule and also get createResolver from it. You always need to resolve all path related things in your layer, else it will break in the extending app. Probably the problem you have. Also if you have a pnpm monorepo and the layer is a separate package and has its own deps installed, these deps are not installed/available in the extending app. If you add runtime code in your layer modules (eg. a plugin) that needs a dependency, it will fail. You must install all needed deps in your extending app too.
2 replies