-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot find name 'Gtag' #5
Comments
I imported
But still getting
|
I am getting the same problem |
¿any solution? |
Same error on build on cloud if I build on localhost I don't get this error. |
Solution: |
I was getting this same error because the gtag() function doesn't get defined when you're running locally. Assuming you don't want to use google analytics locally, you can add the below 'else' block to your script tag:
|
Encounter this >> ERROR in src/app/app.component.ts(11,29): error TS2304: Cannot find name 'Gtag'.
Here's my code in app.component.ts
mmm... what's missing?
The text was updated successfully, but these errors were encountered: