johannschopplich / nuxt-gtag

🔸 Google Analytics & Ads integration made easy
https://developers.google.com/tag-platform/gtagjs
MIT License
302 stars 9 forks source link

Missing ID module option in Nuxt 3.8.1 #32

Closed bayramorhan closed 12 months ago

bayramorhan commented 12 months ago

Environment

Nuxt 3.8.1

Reproduction

Local Dev

Describe the bug

Im getting this error as soon as activate the plugin. Everyting works perfect when I remove this plugin from the nuxt.config.js

nuxt.js:97 [nuxt] error caught during app initialization TypeError: Cannot read properties of undefined (reading 'id')
    at plugin.client.mjs:5:13
    at nuxt.js:110:60
    at fn (nuxt.js:153:44)
    at Object.runWithContext (runtime-core.esm-bundler.js:3873:18)
    at callWithNuxt (nuxt.js:158:24)
    at nuxt.js:31:54
    at EffectScope.run (reactivity.esm-bundler.js:38:16)
    at Object.runWithContext (nuxt.js:31:44)
    at applyPlugin (nuxt.js:110:39)
    at applyPlugins (nuxt.js:125:21)

Additional context

No response

Logs

No response

thelfensdrfer commented 1 month ago

It would have been really helpful to provide a solution before closing the issue :/