functions-differ icon indicating copy to clipboard operation
functions-differ copied to clipboard

Call fails with latest version of firebase-admin installed

Open orbitcm-marcusrogers opened this issue 9 months ago • 0 comments

I've been using functions-differ successfully for a few weeks. Yesterday I updated some other packages to their latest versions. One of the packages (firebase-admin) has started using farmhash as a dependency - farmhash v3.3.1 to be specific. Once [email protected] is in my project, functions-differ throws this error:

PromisePoolError: Build failed with 2 errors: ../../node_modules/farmhash/index.js:5:19: ERROR: No loader is configured for ".node" files: ../../node_modules/farmhash/build/Release/farmhash.node

There doesn't seem to be a dependency tree for functions-differ that includes farmhash (though it appears to come in through @supercharge/proise-pool), so I'm unable to use npm overrides to force an older version of farmhash. There is an issue on farmhash that seems to have a solution that could possibly be implemented in functions-differ to solve this. Any ideas on a solution?

The current workaround is to use an older version of firebase-admin. This will work for now as there's nothing in the new version I need, but is not a long term solution.

orbitcm-marcusrogers avatar May 01 '24 19:05 orbitcm-marcusrogers