ionic-team / ionic-team/ionic-native-google-maps

Blocked Map with the error : TypeError: Cannot redefine property: __pluginDomId

オープン
#316 コメント 10 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
215
フォーク
119
PR マージ指標
30日以内にマージされた PR はありません

説明

**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:**

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:**

**Screen capture or video record:**

**Related code, data or error log (please format your code or data):**
Unhandled Promise rejection: Cannot redefine property: __pluginDomId ; Zone: ; Task: Promise.then ; Value: TypeError: Cannot redefine property: __pluginDomId
at Function.defineProperty ()
at js_CordovaGoogleMaps-for-android_ios.js:530
at Array.forEach ()
at CordovaGoogleMaps.removeDomTree (js_CordovaGoogleMaps-for-android_ios.js:521)
at js_CordovaGoogleMaps-for-android_ios.js:83
at Array.forEach ()
at js_CordovaGoogleMaps-for-android_ios.js:78
at Array.forEach ()
at js_CordovaGoogleMaps-for-android_ios.js:63
at ZoneDelegate.invoke (zone-evergreen.js:364) TypeError: Cannot redefine property: __pluginDomId
at Function.defineProperty ()
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:530:14
at Array.forEach ()
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 ()
at http://192.168.1.10:8100/plugins/cordova-plugin-googlemaps/www/js_CordovaGoogleMaps-for-android_ios.js:78:66
at Array.forEach ()
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.
```

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

まず、issue に記載されているマップのナビゲーションフローを再現し、その後 js_CordovaGoogleMaps-for-android_ios.js の 521-530 行目にある removeDomTree 周辺を調査して、報告されている __pluginDomId エラーを確認します。マップを離れて戻ったときの動作を確認してください。TypeError が発生せずにマップを再び表示できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript, typescript
領域
mobile
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
30/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。