firebase / firebase/firebase-tools

Emulators on macOS fail with bolt database rules

Open
#5,257 1 comment 0 reactions 0 assignees View on GitHub
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.10.0**

**Platform: macOS Ventura on Apple Silicon M2**

### [REQUIRED] Test case

### [REQUIRED] Steps to reproduce

1. Make an empty project
2. Add (a bare minimum of) bolt database rules ( I used `path / {read(){true}write(){true}}`)
3. Run `firebase emulators:start`

### [REQUIRED] Expected behavior

Expected to have emulators running without a problem

### [REQUIRED] Actual behavior

Emulators fail on trying to compile the bolt rules:
`Error: Failed to load initial Database Emulator rules:
../database.bolt:npm ERR! canceled`
Complete log: [npm.log](https://github.com/firebase/firebase-tools/files/10036124/npm.log)

When compiling bolt rules manually, and using the compiled json, the emulators work fine.
It works fine on a Intel macOS Monterey machine, but fails on my Apple Silicon Ventura machine, I don't have any other machines so I'm not sure whether it may have something to do with either Intel/Apple Silicon or Monterey/Ventura.

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.