firebase / firebase/codelab-friendlychat-web

The messages are not displayed

Open
#469 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.9k
Forks
1.8k
PR merge metrics
No merged PRs in 30d

Description

**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 ()
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](https://user-images.githubusercontent.com/4945070/69018219-4308ce00-09e6-11ea-9057-798ccf442561.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.