Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

🐛 Bug Report: [TypeError: Cannot read property 'getItem' of undefined]

オープン
#113 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

@shreshta312 がすでに取り組んでいます。

2026年8月24日 から。

評価

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

調査の方向性

まず node_modules/react-native-appwrite/dist/esm/sdk.js と realtime.onMessage の呼び出し経路を調査し、その後、react-native-appwrite 0.34.0 を使用して実際の Android デバイスで再現してください。完了の条件は、その環境で realtime.onMessage が getItem-of-undefined TypeError をスローしなくなることです。

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

説明

bug
👟 Reproduction steps

got: node_modules\react-native-appwrite\dist\esm\sdk.js file
check: window.localStorage.getItem('cookieFallback')
and run your app on actual device using realtime.onMessage

👍 Expected behavior

This bug is not expected to occur

👎 Actual Behavior

It throws an error: [TypeError: Cannot read property 'getItem' of undefined]

Call Stack
realtime.onMessage (node_modules\react-native-appwrite\dist\esm\sdk.js)
call ()
invoke (node_modules\react-native\src\private\webapis\dom\events\EventTarget.js)
dispatch (node_modules\react-native\src\private\webapis\dom\events\EventTarget.js)
dispatchEvent (node_modules\react-native\src\private\webapis\dom\events\EventTarget.js)
_eventEmitter.addListener$argument_1 (node_modules\react-native\Libraries\WebSocket\WebSocket.js)
apply ()
emit (node_modules\react-native\Libraries\vendor\emitter\EventEmitter.js)
apply ()
(node_modules@babel\runtime\helpers\superPropGet.js)
RCTDeviceEventEmitterImpl#emit (node_modules\react-native\Libraries\EventEmitter\RCTDeviceEventEmitter.js)

🎲 Appwrite version

Different version (specify in environment)

💻 Operating system

Windows

🧱 Your Environment

I have development built from app running on actual android device with android version 16, and I have latest version of react-native-appwrite: 0.34.0

👀 Have you spent some time to check if this issue has been raised before?
  • I checked and didn't find similar issue
🏢 Have you read the Code of Conduct?
主要言語
TypeScript
スター
4.3k
フォーク
36
平均マージ
2時間 39分
マージ済み PR(30日)
8

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

appwrite/sdk-for-react-native のほかの issue

appwrite/sdk-for-react-native の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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