You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the firebase emulator seems to ignore engines.node property and always uses node 12. i think this has also been mentioned tangentially in these issues:
@abeisgoat can you pease double-check this is the case when you run my repro case? i do not have node 12 installed via nvm or anything else, it seems like it's coming from firebase-tools
Yeah I'm also having this issue. There is definitely no other node version installed, I'm using a VSCode devcontainer "16-bullseye" and the only additional "global" package I'm installing is firebase-tools.
@modosc@deckchairlabs I've had the same issue and just solved it by moving away from the standalone version of firebase-tools to the npm installed version. Not sure if this helps your scenario, but it appears the standalone version is shipped with Node v12.x which was causing my code with optional chaining to fail.
i worked around this by using cloud functions directly instead of via firebase. just disappointed that this was closed with very little comment after i spent the time to publish an example repo which demonstrates the problem.
the firebase emulator seems to ignore engines.node property and always uses node 12. i think this has also been mentioned tangentially in these issues:
#2791
https://github.com/firebase/firebase-tools/issues/3296
#1489
[REQUIRED] Environment info
firebase-tools: 9.19.0
Platform: macOS
[REQUIRED] Test case
https://github.com/modosc/firebase-repro
[REQUIRED] Steps to reproduce
clone the above repo and follow the instructions in the README.
[REQUIRED] Expected behavior
the version of node specified in the
engines.node
property ofpackage.json
should be used for functions and when runningemulator:exec
[REQUIRED] Actual behavior
node 12 is always used
The text was updated successfully, but these errors were encountered: