firebase / firebase/firebase-tools

firestore does not work properly in from node 18

Open
#5,755 4 comments 4 reactions 1 assignee Claimed by @christhompsongoogle View on GitHub
emulators: firestore reproducible type: bug
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info

**firebase-tools:**

- 11.29.1

**Platform:**

- macOS 13.3.1
- linux (ubuntu-latest of GitHub CI)

### [REQUIRED] Test case

See an attached file: [firebase-tools-report.zip](https://github.com/firebase/firebase-tools/files/11353819/firebase-tools-report.zip)

### [REQUIRED] Steps to reproduce

See an attached file: [firebase-tools-report.zip](https://github.com/firebase/firebase-tools/files/11353819/firebase-tools-report.zip)

### [REQUIRED] Expected behavior

Should be success (since it has been passed until node 16)

Out of curiosity, I see this when I did not put `runtime` in `firebase.json`, does this mean higher than 16 is not supported? Since I have tested node 17 and 18, both did not work.

```sh
⬢ functions: Failed to load function definition from source: FirebaseError: package.json in functions directory has an engines field which is unsupported. Valid choices are: {"node": 10|12|14|16}
```

### [REQUIRED] Actual behavior

```sh
1) "after each" hook: afterEach for "should set the admin claim when user claim is created 1"

1 passing (38ms)
1 failing

1) "after each" hook: afterEach for "should set the admin claim when user claim is created 1":
Error: connect ECONNREFUSED ::1:8580
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)
```

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.