zadigetvoltaire / nuxt-gtm

Nuxt 3 module for Google Tag Manager
https://www.npmjs.com/package/@zadigetvoltaire/nuxt-gtm
MIT License
66 stars 4 forks source link

Nuxt Auto Imports are messed up in <template> #42

Open lupus78 opened 1 week ago

lupus78 commented 1 week ago

When I enabled this module, TS will highligh all by uilts/* function calls and $config $router globals.

Property '******' does not exist on type 'CreateComponentPublicInstanceWithMixins<Readonly.... image

image

After some digging, I found this comment, what might help: https://github.com/nuxt/nuxt/issues/28707#issuecomment-2322297706

What is causeing this issue? BTW, the app works is both dev and build, it's just a warning, but nonetheless I'd like to get rid of all red hightlights :)

TimGuendel commented 1 week ago

Related https://github.com/nuxt/nuxt/issues/28869

ayalon commented 1 day ago

Maybe also related to this: https://github.com/zadigetvoltaire/nuxt-gtm/issues/41