Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Cannot read property 'storeOpen' of undefined

未關閉
#48 2 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
28/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
停滯
技術堆疊
android, react-native, typescript
領域
mobile, security

研究方向

先使用 @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 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

openwallet-foundation/askar-wrapper-javascript 的其他 Issue

查看 openwallet-foundation/askar-wrapper-javascript 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。