Closed HADB closed 3 months ago
Seems like an edge-case. Do you really need both @nuxtjs/plausible
together with nuxt-gtag
? And if so, so you have to use both useTrackEvent
composables from each package?
I know @nuxtjs/plausible
and nuxt-gtag
are similar, but I use them both just to compare and choose which one to use. But I get these warnings just after configuring them in nuxt.config.ts
without using any of the useTrackEvent
composables.
Here is the minimal reproduction project: https://stackblitz.com/edit/nuxt-starter-xjk9z1?file=package.json,nuxt.config.ts
You're right, the warnings only appear if you have actually configured to use both in the modules
nuxt configuration. If you choose to compare, but only need one at build time, I'd recommend removing the other from your modules
, as this will also reduce the bundle size.
In my opinion, this is intentional. Using both tracking libraries together feels like an edge case. Depending on which one is needed for manual event tracking, you can put the module that should provide the useTrackEvent
composable at a higher position in the modules
array.
Close this as not intended. This is only a warning and won't break your code. 🙂