1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Missing trailing comma comma-dangle(firebase deploy)

Posted at

firebase deployしようとしたら
こんなエラーが出ました。

$ firebase deploy


/Users/name/React/chatbot-app/functions/.eslintrc.js
  13:44  error  Missing trailing comma  comma-dangle

✖ 1 problem (1 error, 0 warnings)
  1 error and 0 warnings potentially fixable with the `--fix` option.

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! functions@ lint: `eslint --ext .js,.ts .`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the functions@ lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/name/.npm/_logs/2021-03-25T05_53_19_710Z-debug.log

Error: functions predeploy error: Command terminated with non-zero exit code1

Having trouble? Try firebase [command] --help

よくエラーを読んでみるとコンマがないって言われてるので
コンマ入れてみたら直りました。
自動生成の時にうまくいっていなかったのでしょうか(泣)
こんな事に何時間も使ってしまいましたのでメモしておきます。

/Users/name/React/chatbot-app/functions/.eslintrc.js
  13:44  error  Missing trailing comma  comma-dangle //末尾にカンマないよ?

✖ 1 problem (1 error, 0 warnings)
1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?