composing email with attachments fails on Android (fix provided)
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 50/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 停滞
- 技術スタック
- android, javascript
- 領域
- mobile
調査の方向性
index.android.js を開き、index.ios.js の for-of ループと添付ファイルの処理を比較します。要求された反復処理の変更を確認し、Android で添付ファイルの配列を使用してメールを作成するテストを行います。添付ファイルによって報告された indexOf エラーが発生しなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
@nativescript/Email v2.0.5
Error
Calling email.compose with array 'attachments' fails with this error:
JS: 'Error in email.compose: TypeError: Cannot read property 'indexOf' of undefined'
Problem
The problem is that 'compose' in "index.android.js" parses attachments using a "for-in" loop. My array created via brackets in JS has a 'move' method by default, and so this for-in loop parses 'attachments[move]' which fails.
Fix
The fix is simply to change it to a "for-of" loop, as is the case in "index.ios.js".
Replace this...
for (const a in arg.attachments) {
const attachment = arg.attachments[a];
with this...
for (const attachment of arg.attachments) {
- 主要言語
- TypeScript
- スター
- 206
- フォーク
- 123
- 平均マージ
- 2日 1時間
- マージ済み PR(30日)
- 1
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
NativeScript/plugins のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 92/100
NativeScript/plugins#680 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
NativeScript/plugins#671 ·
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
NativeScript/plugins#640 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/plugins#668 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
NativeScript/plugins#665 · コメント 1 件 ·
NativeScript/plugins の issue をすべて見る
似ている issue
-
Type/Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
OpenNSW/nsw-srilanka#497 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
0xMiden/bridge-portal#132 ·
-
react-doctor severity:warning tech-debt
難易度 1/5 1時間未満 初心者へのやさしさ 88/100
digidem/comapeo-cloud-app#403 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100