ILLuMiNaTe
ILLuMiNaTe
NNuxt
Created by ILLuMiNaTe on 4/13/2024 in #❓・help
Issue with Nuxt3 UI Carousel.
No description
2 replies
NNuxt
Created by ILLuMiNaTe on 8/14/2023 in #❓・help
Is it possible to dynamically change the runtimeConfig?
For example something like this:
const config = useRuntimeConfig()
config.gtag.id = 'GT4313'
const config = useRuntimeConfig()
config.gtag.id = 'GT4313'
4 replies
NNuxt
Created by ILLuMiNaTe on 2/8/2023 in #❓・help
nuxtServerInit in Nuxt3
In Nuxt2 there was a nice function called nuxtServerInit. However in Nuxt3 this function no longer exists. The issue is I'm having is as follows: For some reason when i have a plugin that executes a $fetch during SSR it executes this around 4-5 times. That of course shouldn't happen. Is there anyway how to do a $fetch to get a initial response?
3 replies
NNuxt
Created by ILLuMiNaTe on 12/17/2022 in #❓・help
How to increase EventEmitter in Nuxt3
I'm getting a warning in my console that there is a possible memory leak. However this is caused by a server middleware proxy and is intentional. Does anyone know how I can increase the setMaxListeners?
(node:8840) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to increase limit
(node:8840) MaxListenersExceededWarning: Possible EventEmitter memory leak detected. 11 close listeners added to [Server]. Use emitter.setMaxListeners() to increase limit
This inside the nuxt.config.ts config sadly did not do the trick.
import { EventEmitter } from 'events'
EventEmitter.setMaxListeners(25)
import { EventEmitter } from 'events'
EventEmitter.setMaxListeners(25)
1 replies
NNuxt
Created by ILLuMiNaTe on 12/15/2022 in #❓・help
Nuxt instance in Module is undefined nuxt3 stable
In RC 13 I could access the this.nuxt property. But now the same "this" call is undefined. Does anyone know how to call access the Nuxt property to setup a hook? ~/modules/material-design-icons
import { resolve } from 'path'

const icons = ["ChevronRight", "ChevronDown"];

export default function () {
this.nuxt.hook("components:dirs", (dirs) => {
dirs.push({
path: resolve("node_modules/vue-material-design-icons"),
prefix: "MaterialIcon",
pattern: `**/@(${icons.join("|")}).vue`
});
});
}
import { resolve } from 'path'

const icons = ["ChevronRight", "ChevronDown"];

export default function () {
this.nuxt.hook("components:dirs", (dirs) => {
dirs.push({
path: resolve("node_modules/vue-material-design-icons"),
prefix: "MaterialIcon",
pattern: `**/@(${icons.join("|")}).vue`
});
});
}
4 replies
NNuxt
Created by ILLuMiNaTe on 12/9/2022 in #❓・help
How to implement Google's Gtag
As we are nearing the end of life period for the google universal tag we all have to implement the Gtags. However to my knowledge there isnt a single package out there that supports the new tag. Does anyone know any solutions to this implementation
2 replies