1
0

More than 1 year has passed since last update.

herokuにデプロイした際にerror: failed to push some refs to 'https://git.heroku.com/output.git'でデプロイできませんでした。

Posted at

ローカル環境では正常だけどherokuにデプロイしたときにエラー発生

エラーメッセージ

ターミナル
 image.png

上にスクロールすると
image.png
Sass::SyntaxError: wrong number of arguments (1 for 4) for `rgba'
cssのrgbaの引数が間違っているとあるのでcssを確認しました。
スクリーンショット 2022-03-05 10.51.47.png
rgba(41, 41, 41, 0.2)に修正して無事デプロイできました。

結論

エラーが発生した際に上までコードを遡ることが重要だと思いました。cssのrgbに辿り着くまでに半日かかりました。エラー解決はエラー文を読んでエラーの原因を突き止めるのが解決の近道だと再認識しました。

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