gtm-support / vue-gtm

Simple implementation of Google Tag Manager for Vue
https://www.npmjs.com/package/@gtm-support/vue-gtm
MIT License
210 stars 27 forks source link

Bug: When it is nuxt3 added as a plug-in, an error occurs and it cannot be used #178

Closed KahrLu closed 2 years ago

KahrLu commented 2 years ago

Hi, when I add vue-gtm as a plugins into nuxt3, there display errors in browser and $gtm doesn't work. Could you help me if this caused by the problem of writing, or is it incompatible with nuxt3 at present? image image image

Shinigami92 commented 2 years ago

I don't know how Nuxt3 works 🤷 You could provide a minimal reproduction or post an answer when you found out how it correctly works

Shinigami92 commented 2 years ago

I'm not sure what this issue could be. Did you use the correct version of the plugin? There are two different, one for vue 2 and one for vue 3 Beside that, reading the errors it looks like you use a minifier so the errors are not well readable.

Closing it for now, you are free to reopen and provide additional info