Cannot read property 'storeOpen' of undefined
還沒有人認領這個 Issue。
評估
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 新手友好度
- 28/100
- Issue 類型
- 缺陷
- 描述清晰度
- 需要釐清
- 活躍度
- 停滯
- 技術堆疊
- android, react-native, typescript
研究方向
先使用 @credo-ts/askar 0.5.15、@credo-ts/react-native 0.5.15 和 @openwallet-foundation/askar-react-native 0.3.2 重現 Android 設定。檢查 AskarModuleConfig.d.ts 以及 keyAeadEncrypt 和 storeOpen 進入點,然後確認已設定的模組通過 TypeScript 檢查,並且能在沒有執行階段錯誤的情況下開啟 wallet。
由索引模型根據 Issue 內容生成。
描述
When I run my app, I get an error because I haven't installed @hyperledger/[email protected], which is required by @credo-ts/[email protected].
After installing that dependency, I run into a TypeScript incompatibility:
Type 'Askar' is not assignable to type 'AriesAskar'.
The types returned by 'keyAeadEncrypt(...)' are incompatible between these types.
Type '.../node_modules/@openwallet-foundation/askar-shared/build/crypto/EncryptedBuffer'.EncryptedBuffer
is not assignable to type '.../node_modules/@hyperledger/aries-askar-shared/build/types'.EncryptedBuffer.
Types have separate declarations of a private property 'buffer'.ts(2322)
AskarModuleConfig.d.ts(47, 5): The expected type comes from property 'ariesAskar' which is declared here
As a last resort, I tried casting the module:
ariesAskar: askar as any
But this causes a runtime error:
Error opening wallet mobile-wallet: Cannot read property 'storeOpen' of undefined
However, the native module doesn't seem to be undefined, because I'm able to call other methods like version:
Askar native module loaded: 0.4.1
How should I integrate @openwallet-foundation/askar-react-native with credo-ts?
Environment
- Platform: Android
- React Native: 0.77.0
@credo-ts/askar:0.5.15@credo-ts/core:0.5.15@credo-ts/react-native:0.5.15@openwallet-foundation/askar-react-native:0.3.2@hyperledger/aries-askar-shared:0.2.3
- 主要語言
- TypeScript
- 星號
- 4
- 分支
- 9
- 平均合併
- 4 分鐘
- 30 天內合併 PR
- 2
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
openwallet-foundation/askar-wrapper-javascript 的其他 Issue
-
難度 4/5 3-5 天 新手友好度 45/100
-
難度 4/5 3-5 天 新手友好度 35/100
-
Migrate to ESM未關閉
難度 4/5 3-5 天 新手友好度 25/100
-
難度 5/5 一週以上 新手友好度 28/100
openwallet-foundation/askar-wrapper-javascript#74 · 3 則留言 ·
-
難度 4/5 3-5 天 新手友好度 45/100
查看 openwallet-foundation/askar-wrapper-javascript 的全部 Issue
相似的 Issue
-
[Bug]: Device screenshot fails with 500 on iPhone Duo (Xcode 27.2): serve-sim calls simctl without --display可能已有人在做 關聯的 PR 仍在進行中或已合併。 未關閉
難度 2/5 1-3 小時 新手友好度 66/100
pingdotgg/t3code#24900 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
inu-appcenter/UNIDorm-web#411 ·
維護者通常 1 天內回覆
-
🐛 bug
難度 2/5 1-3 小時 新手友好度 82/100
維護者通常 2 天內回覆
-
難度 2/5 1-3 小時 新手友好度 75/100
ranxianglei/billion-context#4720 ·
維護者通常 1 天內回覆
-
area:arcade game p3-medium ready-for-agent type:bug
難度 2/5 1-3 小時 新手友好度 82/100
fderuiter/deruiter.dev#2840 ·
維護者通常 1 天內回覆