0
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?

学習85日目

Posted at

テーマ

reactの導入時に遭遇したエラー

目的

備忘録です。

内容

各種バージョンに関するエラー(文は忘れました、、、)

rails shakapacker:installコマンド時のエラー。
互換性に問題があるのが原因。
エラーが出たものについてpackage.jsonのバージョンを最新のものに書き換えて解決。(これで正しいのかは分からない)

This project's package.json defines "packageManager": "yarn@npm@11.5.2". However the current global version of Yarn is 1.22.22.

yarnコマンド時のエラー。
package.jsonのpackageManagerとglobalのyarnのバージョンが違うという意味。
package.jsonからpackageManagerの記述を削除して解決。

browserslistrcに関するエラー(文は忘れました、、、)

./bin/shakapacker-dev-server実行時のエラー。
.browserslistrcがあるのが原因(何かが重複しているらしい)
下記コマンドで解決。

 rm -rf .browserslistrc  

コメント

色々な記事を調べて時間を要したが、chatGPTで質問したら的確な回答が返ってきたので、次からは活用していきたい。

0
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
0
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?