Questions tagged [nuxt-module]
The nuxt-module tag has no usage guidance.
nuxt-module
10
questions
0
votes
0
answers
17
views
How do Nuxt Published modules import helper functions from a previously imported published module?
How do "published" modules import helper functions from a previously imported published module?
The docs say:
Published modules cannot leverage auto-imports for assets within their runtime ...
0
votes
1
answer
405
views
Error added @nuxt/ui to nuxt project: Pre-transform Error
My nuxt project is working fine. When adding Module @nuxt/ui with npx nuxi@latest module add ui, I get an error:
Pre-transform error: Failed to resolve import "#tailwind-config/theme/colors"...
1
vote
1
answer
243
views
How to access generated types in nuxt plugin?
I'm building a nuxt module with type generation. In a module, I want to generate types, add them to .nuxt/types/, and then use them in the plugin to pass them to the generic function. How can i do ...
1
vote
1
answer
542
views
How to resolve "Module @nuxt/image is disabled due to incompatibility issues" error in nuxt2
I am using nuxt version 2.15.8 in my project. I want to install and use NuxtImage module in my project. Acoording to its docs, running npm install -D @nuxt/image command must install the version that ...
0
votes
0
answers
138
views
Pull nuxt 3 module configuration
How to fetch module config?
I am in the process of creating a module for nuxt3. How do I pull information from the module config to component file?
export default defineNuxtModule<ModuleOptions>(...
0
votes
1
answer
158
views
How to use other modules like Tailwindcss in our Nuxt module?
I am trying to build a nuxt module that uses tailwindcss. I don't know how to import it so that the component in runtime dir can use tailwindcss classes.
0
votes
0
answers
670
views
Nuxt3 module as a component library with component prefix and auto import
I have a Stackblitz example here, https://stackblitz.com/github/ianjamieson/nuxt-test-module?file=README.md, which I created using:
npx nuxi init -t module nuxt-test-module
The issue I am having is ...
0
votes
1
answer
910
views
Nuxt3 component library as a module
Looking for some help on a Nuxt module.
I have a component library (the module) which uses an npm package, flat, https://www.npmjs.com/package/flat
When I use the component library in isolation, it ...
10
votes
2
answers
4k
views
How add composables provided by nuxt module to auto import?
I would like to add composables from my custom nuxt module and use them in components without import.
Now I have to use #import because without it I get an error (500 - useTest is not defined). I have ...
8
votes
3
answers
15k
views
How to use nuxtjs/auth-next module with Nuxt3?
Just trying to add authentication to my NuxtJs 3 app folloging nuxt/auth configuration docs, but still get an error during app start:
// nuxt.config.js
export default defineNuxtConfig({
auth: {
...