ionic-team / ionic-team/ionic-native-google-maps
Blocked Map with the error : TypeError: Cannot redefine property: __pluginDomId
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 215
- Forks
- 119
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
I'm submitting a ... (check one with "x")
- question
- any problem or bug report
- feature request
If you choose 'problem or bug report', please select OS: (check one with "x")
- Android
- iOS
- Browser
cordova information: (run $> cordova plugin list)
cordova-androidx-build 1.0.4 "cordova-androidx-build"
cordova-plugin-device 2.0.2 "Device"
cordova-plugin-googlemaps 2.8.0-20200601-1013 "cordova-plugin-googlemaps"
cordova-plugin-ionic-keyboard 2.2.0 "cordova-plugin-ionic-keyboard"
cordova-plugin-ionic-webview 4.2.1 "cordova-plugin-ionic-webview"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.4.2 "StatusBar"
cordova-plugin-whitelist 1.3.3 "Whitelist"
insert the output from the command here
**If you use `@ionic-native/google-maps`, please tell the package.json (only `@ionic-native/core` and `@ionic-native/google-maps` are fine mostly)**
"@ionic-native/core": "^5.26.0",
"@ionic-native/google-maps": "^5.5.0",
**Current behavior:**
<!-- Describe how the bug manifests. -->
When the maps loaded for the first time, it works perfectly. But when i change the page and i return to the map. it bocks
**Expected behavior:**
<!-- Describe what the behavior would be without the bug. -->
**Screen capture or video record:**
<!--
Please take a screen capture or a screen record. You can upload your files with drag & drop up to 10M bytes.
[Android]
$> adb shell screenrecord /sdcard/capture.mp4
$> adb pull /sdcard/capture.mp4 ./
[iOS]
Use QuickTimer player on Mac
--->
**Related code, data or error log (please format your code or data):**
Unhandled Promise rejection: Cannot redefine property: __pluginDomId ; Zone: <root> ; Task: Promise.then ; Value: TypeError: Cannot redefine property: __pluginDomId
at Function.defineProperty (<anonymous>)
at js_CordovaGoogleMaps-for-android_ios.js:530
at Array.forEach (<anonymous>)
at CordovaGoogleMaps.removeDomTree (js_CordovaGoogleMaps-for-android_ios.js:521)
at js_CordovaGoogleMaps-for-android_ios.js:83
at Array.forEach (<anonymous>)
at js_CordovaGoogleMaps-for-android_ios.js:78
at Array.forEach (<anonymous>)
at js_CordovaGoogleMaps-for-android_ios.js:63
at ZoneDelegate.invoke (zone-evergreen.js:364) TypeError: Cannot redefine property: __pluginDomId
at Function.defineProperty (<anonymous>)
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:530:14
at Array.forEach (<anonymous>)
at CordovaGoogleMaps.removeDomTree (http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:521:12)
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:83:34
at Array.forEach (<anonymous>)
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:78:66
at Array.forEach (<anonymous>)
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:63:48
at ZoneDelegate.invoke (http://192.168.1.10:8100/polyfills.js:3470:30)
The person who share your project files on Github (or other git repository) is in faster lane than other people.
Please share your project files on Github or others(Bitbucket, Gitlabs...etc).
If you don't want to share your project files, please create a demo project, then share it.
Screen captures, and/or native logs(such as Logcat, xcode logs) are appreciate.
Giving much information, you are waiting time is less.
Thank you for your cooperation.
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
Comienza reproduciendo el flujo de navegación del mapa descrito en el issue y, después, inspecciona en js_CordovaGoogleMaps-for-android_ios.js alrededor de removeDomTree, en las líneas 521-530, el error reportado de __pluginDomId. Confirma el comportamiento al salir del mapa y volver a él; se considera terminado cuando se puede volver a visitar el mapa sin el TypeError.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- javascript, typescript
- Área
- mobile
- Tipo de issue
- Error
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 30/100