I am encountering an issue while trying to deploy Firebase Functions using the Firebase CLI. Whenever I attempt to deploy the functions in my project, I receive the following error
Build failed: yarn run v1.22.19
error Command "plugin" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.; Error ID: e83c667d
Build failed: yarn run v1.22.19
error Command "plugin" not found.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.; Error ID: e83c667d
Functions deploy had errors with the following functions:
holderOnCreate(us-central1)
messageOnCreate(us-central1)
i functions: cleaning up build files...
Error: There was an error deploying functions:
1. Error Failed to update function messageOnCreate in region us-central1
2. Error Failed to update function holderOnCreate in region us-central1
I have tried several troubleshooting steps, including:
FTR here yarn and npm versions I have installed on my machine: npm - 9.5.1. yarn 3.5.1 (Its weird because the error is displaying the line yarn v1.22.19, and I have literally no idea where that's coming from)
Despite these attempts, I am still unable to deploy the Firebase Functions in my project.
Could anyone provide insights or suggestions on what might be causing this issue? Any help would be greatly appreciated.
I had the same issue. The yarn version in the error is the one that's running on Google's servers and it seems like it's very out of date.
I ended up removing my firebase functions project yarn.lock and deployed with npm run deploy. That ended up working for me.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With