cordova-plugin-googlemaps icon indicating copy to clipboard operation
cordova-plugin-googlemaps copied to clipboard

Error: Can't resolve all parameters for GoogleMap: (?, ?, ?) ionic 4

Open Timn97 opened this issue 7 years ago • 6 comments

I used your plugin like home page in repository (https://github.com/mapsplugin/ionic-googlemaps-quickdemo-v4) , when i delete GoogleMap in app.module.ts, browser send error NullInjectorError: No provider for GoogleMap!

So I add it agian in app.module.ts, browser send me error Can't resolve all parameters for GoogleMap: (?, ?, ?).

How to fix it ?

Timn97 avatar Mar 22 '19 11:03 Timn97

I can't understand your situation. Please share your project files (all files) on GitHub repository.

wf9a5m75 avatar Mar 22 '19 14:03 wf9a5m75

@wf9a5m75 in this case, my project is in https://github.com/hieunguyenvanLC/FacingCapstone/tree/thangdp/FPS_Mobile_App/FPS

my problem in scr/app/screens/order/order.page.ts + order.html.ts

my ionic version: 4.10.3 cordova version : 8.1.2

Timn97 avatar Mar 23 '19 10:03 Timn97

This error is usually because you have a circular dependency.

This means that you're importing a 2 providers into the same page and both of those providers are using another provider which is the same.

For example you import provider A and B to a page and then both providers A and B and using the same dependency C.

UlisesCeca avatar Mar 27 '19 09:03 UlisesCeca

oh, I will check base on your advice, I will reply soon.

Thank you very much !

Timn97 avatar Mar 27 '19 14:03 Timn97

Tks so much, it worked ! But now I have a new problem with the real device. Should I create a new issue ?

Timn97 avatar Mar 30 '19 15:03 Timn97

I guess you should close this issue and open another one

UlisesCeca avatar Apr 01 '19 07:04 UlisesCeca