The messages are not displayed

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

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
firebase, javascript
領域
database, frontend

調査の方向性

main.js の 265 行目付近にある createAndInsertMessage と、299 行目付近にある displayMessage から始め、その後、デプロイされた Cloud Functions for Firebase codelab を再現してください。受信したメッセージデータで timestamp.toMillis を利用できない理由を確認してください。メッセージを送信するとコンソールに TypeError が表示されず、ページに表示されれば完了です。

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

説明

bug

Describe the bug
Build the demo Cloud Functions for Firebase.
After completing the deploy, try to send the message, but no message displayed.

Errors in the console:

Uncaught TypeError: timestamp.toMillis is not a function
    at createAndInsertMessage (main.js:265)
    at displayMessage (main.js:299)
    at main.js:77
    at Array.forEach (<anonymous>)
    at Object.next (main.js:72)
    at next (database.ts:1825)
    at async_observer.ts:51

Firebase-tools version: 7.7.0

To Reproduce
Steps to reproduce the behavior:

  1. Deploy the project by following the sample Cloud Functions for Firebase
  2. Visit the page, input the message then send

Expected behavior
The message is displayed on the page.

Additional context
image

主要言語
JavaScript
スター
1.9k
フォーク
1.8k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

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

firebase/codelab-friendlychat-web のほかの issue

firebase/codelab-friendlychat-web の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

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

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