You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is unfortunately an issue with typescript. google chrome labs third party capital has moved to function overloading to define Gtag and typescript's infer works badly/doesn't work with it.
For now, I would suggest you to use onLoaded instead of the proxy
📚 What are you trying to do?
I'm trying to use the googleTagManager registry script and the useScriptGoogleAnalytics composable.
I have the registry script set up like so:
In my app.vue file, I'm using the composable like so:
But the gtag type shows an error in my IDE:
"Expected 2 arguments, but got 3."
However, the modules/composable works as expected (I have tested it with the tag assistant).
How can I get the types working?
🔍 What have you tried?
No response
ℹ️ Additional context
No response
The text was updated successfully, but these errors were encountered: