- やりたい事
Railsのバージョンを5版でかつform_withが使用出来るバージョンに変更したいです。
- エラーが発生する前に行った事
1.rails new でアプリケーションを作成済みです。
2. rails6.1.4.4で登録されていた為、Gemfileのrails部分をrails5.2.6に変更してbudle installしたところエラーが表示されます。
3. エラーが発生した為、Gemfileのrails部分を元の記述に戻しbudle installしましたが、同じくエラーが表示されます。
- エラー内容
```The dependency tzinfo-data (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for x86-mingw32, x86-mswin32, x64-mingw32, java. To add those platforms to the bundle, run bundle lock --add-platform x86-mingw32 x86-mswin32 x64-mingw32 java
.
Fetching gem metadata from https://rubygems.org/...........
Fetching gem metadata from https://rubygems.org/.
Resolving dependencies...
Bundler could not find compatible versions for gem "activemodel":
In Gemfile:
rails (= 5.2.6) was resolved to 5.2.6, which depends on
activemodel (= 5.2.6)
web-console (>= 4.1.0) was resolved to 4.2.0, which depends on activemodel (>= 6.0.0)
Bundler could not find compatible versions for gem "activesupport":
In Gemfile:
jbuilder (~> 2.7) was resolved to 2.11.5, which depends on
activesupport (>= 5.0.0)
rails (= 5.2.6) was resolved to 5.2.6, which depends on activesupport (= 5.2.6) webpacker (~> 5.0) was resolved to 5.4.3, which depends on activesupport (>= 5.2)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 2.6.3.0)
spring was resolved to 4.0.0, which depends on ruby (>= 2.7.0)```
rails6以降からwebpackがインストールされているみたいなので、webpackが問題ではないかと推測しました。
色んな方のを参考に調べてみましたが、私の調べる力が足りず解決にいきつきませんでした。
ご対応宜しくお願い致します。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。