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

Angular 14 - Autocomplete issue #73

Closed
phenric opened this issue Sep 20, 2022 · 5 comments
Closed

Angular 14 - Autocomplete issue #73

phenric opened this issue Sep 20, 2022 · 5 comments
Assignees

Comments

@phenric
Copy link

phenric commented Sep 20, 2022

I've this issue using the autocomplete

main.js:1 ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(n)[Z_ -> Z_ -> Z_]: NullInjectorError: No provider for Z_! NullInjectorError: R3InjectorError(n)[Z_ -> Z_ -> Z_]: NullInjectorError: No provider for Z_!

I saw on the web it could be due to Angular 14. Do you face the same with NG14?

I declared it as described in the providers in app.module
{ provide: GOOGLE_MAPS_API_CONFIG, useValue: { apiKey: environment.AGMAPS_API, libraries: ['places'] } }

and I can see the map but when I add the input autocomplete, it crashes.

@DaSchTour DaSchTour self-assigned this Sep 21, 2022
@phenric
Copy link
Author

phenric commented Oct 5, 2022

Ok I think I've found a fix. I'm making a PR :)

@phenric
Copy link
Author

phenric commented Oct 5, 2022

Hi @DaSchTour I'm not able to create a new branch. Can you give me the right?

@DaSchTour
Copy link
Contributor

@phenric you can create a fork, create a branch there and then create a pull-request. That's the procedure I normally use and see in other repos.

@phenric
Copy link
Author

phenric commented Oct 5, 2022

Hi @DaSchTour Thanks for the reply.

I made the pull request #74
Let me know if you agree with my suggestion :)

DaSchTour added a commit that referenced this issue Oct 6, 2022
@DaSchTour
Copy link
Contributor

Fixed in 3.0.1

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