Incorrect Dependencies when running Firebase Init Functions
Related issues
[REQUIRED] Version info
NODE: 20.14.0 NPM: 10.7.0
firebase-functions:
firebase-tools:
firebase-admin:
[REQUIRED] Test case
[REQUIRED] Steps to reproduce
Run npm outdated to update the packages
[REQUIRED] Expected behavior
[REQUIRED] Actual behavior
Were you able to successfully deploy your functions?
When I upgrade eslint to 9.4.0 I can no longer run firebase deploy since the config file has changed.
Also firebase-admin should be updated to 12.1.1
Firebase-functions should be updated to 5.0.1
I found a few problems with this issue:
- I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.
- This issue does not have all the information required by the template. Looks like you forgot to fill out some sections. Please update the issue with more information.
Hello @JamesVanWaza. Can you provide information about the Firebase CLI version via running firebase --version. Please unsure you're on the latest version via running npm install -g firebase-tools
@exaby73
firebase --version: 13.7.1
There seems to be an update to the CLI available. Could you update and try again?
@exaby73 I have updated my CLI but when you run firebase deploy this error keeps happening
The .eslintrc.js file needs to be configured to eslint.config.js to match the new Migration
You'll have to migrate this yourself. Currently, firebase init functions installed eslint version ^8.9.0. I just checked
@exaby73 sounds good. Will wait for the update then instead of reverting to 8.9.0
I’m closing this issue now, as ESLint major version 8 is currently in use within firebase-tools. If you wish to use ESLint major version 9, you can either migrate manually (as previously suggested) or submit a request in firebase-tools.