Dominic
How to inject HTML tags from @nuxt/kit
Well hidden in the docs. https://nuxt.com/docs/getting-started/views#advanced-extending-the-html-template
3 replies
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