Closed modbender closed 1 year ago
Oh snap. 🙈 Thanks for reporting!
@johannschopplich also missing in composable: https://github.com/johannschopplich/nuxt-gtag/blob/main/src/runtime/composables/useGtag.ts
Uncaught (in promise) ReferenceError: useNuxtApp is not defined.
That's the same problem. Somehow didn't happen during playground testing... Will fix it asap. Thanks for testing!
Fixed in https://github.com/johannschopplich/nuxt-gtag/commit/e09a1e597d7ca2dfb42906bd4c7358fa64f92afb.
Please use v0.2.2 – should be deployed in a minute. 🙂
Environment
Windows_NT
v16.18.1
3.2.3
2.3.1
yarn@1.22.17
vite
-
-
Build Modules:
-
Reproduction
Describe the bug
GTag doesn't work. On browser console I see this error:
Uncaught ReferenceError: defineNuxtPlugin is not defined at plugin.client.mjs?v=54cefaf0:1:1
You should probably add this to plugin.client.ts
Additional context
No response
Logs
No response