ngx-google-places-autocomplete
ngx-google-places-autocomplete copied to clipboard
Angular Universal: google is not defined
When running in Universal Mode, google is not defined there should be a wrapper around the google lib access to check for platformIsBrowser.
ERROR ReferenceError: google is not defined
at GooglePlaceDirective../node_modules/ngx-google-places-autocomplete/ngx-google-places-autocomplete.directive.js.GooglePlaceDirective.isGoogleLibExists (....)
Hi Andreas,
I am having the same issue. You mentioned that there should be a wrapper around the google lib access to check for platformIsBrowser. Is this the fix?
Kind regards, Andrei
@helgetan @avidaicu Have you guys managed to overcome this issue in any way?
hi @helgetan , Basically, i can add a check for platformIsBrowser, but i am not sure that google autocomplete will work in that case as expected. Can you please share any example of the project with Angular Universal and that library?