-
Notifications
You must be signed in to change notification settings - Fork 951
Description
Operating System
Ubuntu
Environment (if applicable)
NodeJs 16.20.2
Firebase SDK Version
12.1.1
Firebase SDK Product(s)
Database
Project Tooling
NodeJS backend using firebase-admin v12.1.1
Detailed Problem Description
We are running our code on Node 16 due to some other dependency issues.
We use firebase-admin v12.1.1
The firebase-admin has got a dependency on @firebase/database-compat
"@firebase/database-compat": "^1.0.2",
The recent version of @firebase/database-compat introduced the minimum node version as 18, thus breaking all our build.
error @firebase/[email protected]: The engine "node" is incompatible with this module. Expected version ">=18.0.0". Got "16.20.2"
I would have thought that updates like this would need a major version change as it breaks existing code bases.
Fixing an older version of firebase-admin's package to fix it to a version might not be an option.
My suggestion is to revert the change on @firebase/[email protected] to allow older node version and build a new major release
Steps and code to reproduce issue
Install firebase-admin on Node16