[BUG] - Problem on modal - Error: Attempted to assign to readonly property.
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 2/5
- 預估耗時
- 1-3 小時
- 新手友好度
- 35/100
- Issue 類型
- 缺陷
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- ios, javascript
- 領域
- mobile-dev
研究方向
從 node_modules/@nativescript/core/ui/core/view/view.ios.js 第 370 行開始,然後追蹤經過 view-common.js:283 和 @nativescript/angular/directives/dialogs.js:99 的 modal 呼叫。使用啟用 Bitcode 的新 runtime 重現 modal 失敗,並確認 modal 可以開啟且不會出現 readonly-property 錯誤。
由索引模型根據 Issue 內容生成。
描述
Hi guys,
because I need to enable Bitcode I've adopted new runtime and I succeeded to enable it.
With new runtime I have some crashes and issues.
If I open a modal I have this log and modals do not open:
CONSOLE ERROR: ERROR Error: Uncaught (in promise): Error: Attempted to assign to readonly property.
Error: Attempted to assign to readonly property.
at GridLayout.push.../node_modules/@nativescript/core/ui/core/view/view.js.View._showNativeModalView (file: node_modules/@nativescript/core/ui/core/view/view.ios.js:370:0)
at ProxyViewContainer.push.../node_modules/@nativescript/core/ui/core/view/view-common.js.ViewCommon.showModal (file: node_modules/@nativescript/core/ui/core/view/view-common.js:283:0)
at file: node_modules/@nativescript/angular/directives/dialogs.js:99:0
at ZoneDelegate.push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke (file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:388:0)
at Object.onInvoke (file: node_modules/@angular/core/fesm5/core.js:26256:0)
at ZoneDelegate.push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.ZoneDelegate.invoke (file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:387:0)
at Zone.push.../node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js.Zone.run (file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:138:0)
at file: node_modules/@nativescript/angular/zone-js/dist/zone-nativescript.js:883:0
at ZoneDele<…>
Problem is on these line:
controller.animated = animated;
Thanks for your help and support.
- 主要語言
- JavaScript
- 星號
- 150
- 分支
- 44
- 平均合併
- 1 天 8 小時
- 30 天內合併 PR
- 8
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
NativeScript/ios 的其他 Issue
-
難度 5/5 一週以上 新手友好度 38/100
NativeScript/ios#459 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 25/100
NativeScript/ios#445 ·
維護者通常 1 天內回覆
-
難度 3/5 3-5 天 新手友好度 66/100
NativeScript/ios#414 ·
維護者通常 1 天內回覆
-
question
難度 4/5 3-5 天 新手友好度 34/100
NativeScript/ios#364 · 2 則留言 ·
維護者通常 1 天內回覆
-
難度 4/5 3-5 天 新手友好度 35/100
NativeScript/ios#355 ·
維護者通常 1 天內回覆
相似的 Issue
-
[Feature]:未關閉enhancement
難度 2/5 1-3 小時 新手友好度 65/100
-
難度 2/5 1-3 小時 新手友好度 73/100
Uuriko/project-room#1554 ·
維護者通常 1 天內回覆
-
automated issue report
難度 2/5 1-3 小時 新手友好度 62/100
lirantal/discoprint#36 ·
維護者通常 1 天內回覆
-
accepting PR Content:HTML
難度 1/5 1 小時以內 新手友好度 88/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆