ionic-team / ionic-native-google-maps

Google maps plugin for Ionic Native
Other
221 stars 125 forks source link

TypeError: Cannot read property '_privateInitialize' of undefined (Google Map) #148

Closed Ghayyas closed 5 years ago

Ghayyas commented 5 years ago

How to handle this?

Unhandled Promise rejection: Cannot read property '_privateInitialize' of undefined ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot read property '_privateInitialize' of undefined
    at Map.<anonymous> (Map.js:1415)
    at commandQueueExecutor.js:63
    at t.invoke (polyfills.js:3)
    at r.run (polyfills.js:3)
    at polyfills.js:3
    at t.invokeTask (polyfills.js:3)
    at r.runTask (polyfills.js:3)
    at o (polyfills.js:3) TypeError: Cannot read property '_privateInitialize' of undefined
    at Map.<anonymous> (http://localhost:8080/plugins/cordova-plugin-googlemaps/www/Map.js:1415:12)
    at http://localhost:8080/plugins/cordova-plugin-googlemaps/www/commandQueueExecutor.js:63:21
    at t.invoke (http://localhost:8080/build/polyfills.js:3:14976)
    at r.run (http://localhost:8080/build/polyfills.js:3:10143)
    at http://localhost:8080/build/polyfills.js:3:20242
    at t.invokeTask (http://localhost:8080/build/polyfills.js:3:15660)
    at r.runTask (http://localhost:8080/build/polyfills.js:3:10834)
    at o (http://localhost:8080/build/polyfills.js:3:7894)
n.onUnhandledError @ polyfills.js:3
r @ polyfills.js:3
(anonymous) @ polyfills.js:3
n.microtaskDrainDone @ polyfills.js:3
o @ polyfills.js:3
Promise.then (async)
r @ polyfills.js:3
t.scheduleTask @ polyfills.js:3
r.scheduleTask @ polyfills.js:3
r.scheduleMicroTask @ polyfills.js:3
f @ polyfills.js:3
t.then @ polyfills.js:3
nextTick @ Common.js:6
commandQueue.push.args @ commandQueueExecutor.js:62
callbackFromNative @ cordova.js:291
(anonymous) @ VM312:1
wf9a5m75 commented 5 years ago

You need to install cordova-plugin-googlemaps. Please read this slide deeply. https://docs.google.com/presentation/d/e/2PACX-1vScoho1ensbR4qCI9AIuQN55BZVvK73pAjI7sumDvW3CrxxHnrmpXWUjx2-8CpFibqU1EjLKCRhuthJ/pub?start=false&loop=false&delayms=3000&slide=id.p

Ghayyas commented 5 years ago

But Plugin is already installed.

wf9a5m75 commented 5 years ago
$>ionic cordova run (android/ios/browser)

Not

$> ionic serve
Ghayyas commented 5 years ago

yes. Im doing it.

ionic cordova run android --aot ionic cordova run android -l -s -c ionic cordova run android

But still have same issue..

wf9a5m75 commented 5 years ago

ok, please share your project files (everything) on github repository.

wf9a5m75 commented 5 years ago

Since there is no response for a while, and no additional information is provided, I close this thread.