Npm install fails: terminate_handler not declared within "std"

I am trying to compile Mailspring on Fedora 34. I installed all dependencies as per the documentation.
npm install fails with

npm ERR! ../src/ Fehler: »terminate_handler« wurde nicht innerhalb von »std« deklariert
npm ERR!     5 | using std::terminate_handler;
npm ERR!       |            ^~~~~~~~~~~~~~~~~

The first line roughly translates to “terminate_handler not declared within std”. It’s weird I am getting this error because libstdc++ is installed according to dnf:

Installierte Pakete
libstdc++.i686                                                                       11.1.1-3.fc34                                                               @updates
libstdc++.x86_64                                                                     11.1.1-3.fc34                                                               @updates
libstdc++-devel.i686                                                                 11.1.1-3.fc34                                                               @updates
libstdc++-devel.x86_64                                                               11.1.1-3.fc34                                                               @updates

Do you have any suggestions on what else I have to install/configure to make compilation work?



I found that the issue is caused by version 2.6.0 of cld that is pulled in as a dependency. Upgrading cld to 2.7.0 solves the issue for me.