railsで、Gemのdeviseを使う時に、起こりがちのエラー Webpacker::Manifest::MissingEntryErrorの解消について。
よく、いろんな記事に載っている、以下のコマンドを実行してもエラーが解消されない。
rails webpacker:install
rails webpacker:compile
nodeのバージョンが20だったのですが、
14に下げることで治りました。
使用できるバージョンは以下のコマンドで確認。
n ls-remote --all
以下で、バージョンのダウングレードをする。
sudo n 14.0.0
すると、治りました。