Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
ところ以下のエラーが発生。
さらに上のログを見るとこんな記述も
試しにこちらのサイトへアクセスして以下のことを実行する。(やったことの順番は上から)
nothing to commit, workingtree cleanはまだマスターに反映されていない変更があるので、それを反映させる必要がある。
・webpackerに何かしらの問題があるのでは?何故なら precompileに失敗しているので。
そこで上に遡ってエラーメッセージを紐解く
これについて調べた結果これを発見
rails/webpacker#1078
そしてこれを実行してみる
何やらこんな警告文も出ているので、これについて調べてみる。
するとこんな記事があったのでそれを試してみる
https://qiita.com/nto300002/items/54a3c8d96956cbdd7cf1
ログに記載されているURLへ飛ぶ
そこにこんな記載が
中身を見てもちょっと解読が難しいので、warning: Multipleの部分をコピペしてググる(しかし、このままではいけない。。。本当はこういった文章を紐解く理解力が必要なのに。。。)
https://qiita.com/haru52/items/c2e062f6e1c7d4ecfe49
すると、こんな記事が。これによるとbundlerのバージョンに問題がある。とのこと。precompileに失敗しているので、bundlerのバージョンに問題がある可能性は否定できない。よってやってみる。
そこでちょっと思いとどまる。
本当にbundlerなのか?と。自分のエラーが他人のエラーと全く同じとは限らない。やはりドキュメントを紐解くことが正解への近道なのでは。となので、もう一度頑張ってグーグル翻訳を使いながら調べてみる。メッセージからこのページの内容に沿って実行
https://devcenter.heroku.com/articles/using-multiple-buildpacks-for-an-app
再度読み解く
https://devcenter.heroku.com/articles/ruby-support#rails-6-x-applications
これを実行してみる。