## TL;DR

Switch Node versions and rebuild. For general Firebase discussion, use the firebase-talk google group. * For help troubleshooting your application that does not fall under one...

## Steps

1. You are building with an unsupported Node version. The Firebase JS SDK build needs a supported Node release, not Node 10; the guidance in the thread pointed to Node 16 LTS. Switch Node versions and rebuild.

## When to use

You are seeing this: https://github.com/firebase/firebase-js-sdk/issues/7042: Issue firebase/firebase-js-sdk#7042 (closed, 14 comments): [!-- Step 1 [READ THIS] --] <!-- Are you in the right place? Use this skill when you run into "Build fails: error yargs@17.2.0: The engine "node" is incompatible with this module. Expected version ">=12". Got".

## When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

## Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

## Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

## Sources

- https://github.com/firebase/firebase-js-sdk/issues/7042:

- http://stackoverflow.com/

- https://groups.google.com/forum/#!forum/firebase-talk
