Skip to content
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

"google is not defined" in Angular 13 #113

Open
harleenarora opened this issue Sep 22, 2022 · 1 comment
Open

"google is not defined" in Angular 13 #113

harleenarora opened this issue Sep 22, 2022 · 1 comment

Comments

@harleenarora
Copy link

Hi,

I have been following the example to try and add this to my application but I am getting the following error

core.js:6241 ERROR ReferenceError: google is not defined

But I load script on specific component constructor. I need this script on specific component only not a complete project.

@dancornilov
Copy link

This thing happened because google is used before it initialized. Because of inactivity of this package, I created my own package which is fully compatible with this one, code base was used from this package and adjusted to new coding standards.

You can try:
https://www.npmjs.com/package/@angular-magic/ngx-gp-autocomplete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants