-6

I want to run

firebase deploy --only functions

command but it gives me many error what can i do?

image of error

Frank van Puffelen
  • 565,676
  • 79
  • 828
  • 807
ak group
  • 1
  • 1
  • 1
    I'd recommend posting the contents of the `functions/index.js` file noted in that ESLint error because there's not enough information to help you. – Brian Burton Feb 08 '21 at 14:25
  • 1
    Welcome to StackOverflow! Please do not post images of text here, see [the discussion](https://meta.stackoverflow.com/questions/285551/why-not-upload-images-of-code-errors-when-asking-a-question/285557#285557). – ominug Feb 08 '21 at 15:49
  • 3
    Appears the eslint script (in package.json) is erroring. Is the package installing correctly and if so next simply see that it runs properly by running it in the functions directory. If there's an error it would indicate a possible solution/problem. Be sure to use v14 (and not v15) to deploy as well--at least currently that results in ambiguous errors. – jimmont Feb 10 '21 at 02:48
  • @jimmont I think that this answer is reasonable for me. Can you move this to an answer? – vi calderon Feb 23 '21 at 23:57
  • quite remarkable the downvotes--what a place SO has become... answer added @gisshizuku45 – jimmont Feb 24 '21 at 04:26

1 Answers1

2

reading through the error info shared it looks like the deployment is trying to run one of the package.json scripts for eslint and failing, to quickly see if that's the case simply disable that based on what's in the package.json

if you want the linting to happen just finish setting it up, otherwise remove the related dependencies and configuration, linting can be useful, however it can also become quite onerous without auto-fixing (I can't remember that unrelated detail at the moment... possibly --fix) so it's a good thing to work out along with whatever automation relates to the work and team

jimmont
  • 2,304
  • 1
  • 27
  • 29