1
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Rails6 Webpackerでmanifest.jsonがありませんのトラブルシューティング

Last updated at Posted at 2021-01-26

環境

Ubuntu16.04.7 LTS
Windows10 + Vegrant
Rails 6.0.3

トラブル内容

rails newした直前であれば、rails sで問題なく起動してくれるが、rails g controller top indexで、コントローラとビューを作った後に、rails sすると、このようなエラーが出て来ました。
image.png
色々ググってみると、rails webpacker:installをして、webpackerを再インストールすればOKとの情報があるが、それでも上手くいかなかった場合はどうする?

解決内容

application.html.erbでエラーが出ているこれ1行をコメントにすればOKみたいです。自分もこれで解決しました。だがしかし、これが最終回答ではないようです。続きは参考URLを最後まで読んでみて下さい。

<%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>

参考URL

1
3
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
3

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?