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

Incorrect Dependencies when running Firebase Init Functions

Open JamesVanWaza opened this issue 1 year ago • 7 comments

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

Screenshot 2024-06-03 at 8 45 56 PM

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

JamesVanWaza avatar Jun 04 '24 00:06 JamesVanWaza

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.

google-oss-bot avatar Jun 04 '24 00:06 google-oss-bot

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 avatar Jun 17 '24 13:06 exaby73

@exaby73 firebase --version: 13.7.1

Screenshot 2024-06-17 at 7 42 50 PM

JamesVanWaza avatar Jun 17 '24 23:06 JamesVanWaza

There seems to be an update to the CLI available. Could you update and try again?

exaby73 avatar Jul 15 '24 07:07 exaby73

@exaby73 I have updated my CLI but when you run firebase deploy this error keeps happening

Screenshot 2024-07-15 at 7 49 31 PM

The .eslintrc.js file needs to be configured to eslint.config.js to match the new Migration

JamesVanWaza avatar Jul 15 '24 23:07 JamesVanWaza

You'll have to migrate this yourself. Currently, firebase init functions installed eslint version ^8.9.0. I just checked

exaby73 avatar Jul 23 '24 06:07 exaby73

@exaby73 sounds good. Will wait for the update then instead of reverting to 8.9.0

JamesVanWaza avatar Jul 28 '24 17:07 JamesVanWaza

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.

CorieW avatar Feb 20 '25 14:02 CorieW