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?

More than 1 year has passed since last update.

【Heroku】 ActionView::Template::Error (Webpacker can't find application.js in /ideaFrameworks/public/packs/manifest.json. Possible causes:

Last updated at Posted at 2021-12-05

Rendered layout layouts/application.html.erb (Duration: 1.8ms | Allocations: 983)
2021-12-05T07:57:51.553760+00:00 app[web.1]: I, [2021-12-05T07:57:51.553723 #5] INFO -- : [7101643d-e3f6-44fc-8f81-5b4e42542e97] Completed 500 Internal Server Error in 45ms (ActiveRecord: 5.6ms | Allocations: 2446)
2021-12-05T07:57:51.554362+00:00 app[web.1]: F, [2021-12-05T07:57:51.554328 #5] FATAL -- : [7101643d-e3f6-44fc-8f81-5b4e42542e97]
2021-12-05T07:57:51.554363+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] ActionView::Template::Error (Webpacker can't find application.js in /ideaFrameworks/public/packs/manifest.json. Possible causes:
2021-12-05T07:57:51.554364+00:00 app[web.1]: 1. You want to set webpacker.yml value of compile to true for your environment
2021-12-05T07:57:51.554364+00:00 app[web.1]: unless you are using the webpack -w or the webpack-dev-server.
2021-12-05T07:57:51.554365+00:00 app[web.1]: 2. webpack has not yet re-run to reflect updates.
2021-12-05T07:57:51.554366+00:00 app[web.1]: 3. You have misconfigured Webpacker's config/webpacker.yml file.
2021-12-05T07:57:51.554366+00:00 app[web.1]: 4. Your webpack configuration is not creating a manifest.
2021-12-05T07:57:51.554367+00:00 app[web.1]: Your manifest contains:
2021-12-05T07:57:51.554368+00:00 app[web.1]: {
2021-12-05T07:57:51.554368+00:00 app[web.1]: }
2021-12-05T07:57:51.554368+00:00 app[web.1]: ):
2021-12-05T07:57:51.554369+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 7: <%= csp_meta_tag %>
2021-12-05T07:57:51.554370+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 8:
2021-12-05T07:57:51.554370+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 9: <%= stylesheet_link_tag 'application', media: 'all' %>
2021-12-05T07:57:51.554371+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 10: <%= javascript_pack_tag 'application' %>
2021-12-05T07:57:51.554371+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 11:
2021-12-05T07:57:51.554371+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 12:
2021-12-05T07:57:51.554372+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] 13:


2021-12-05T07:57:51.554372+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97]
2021-12-05T07:57:51.554373+00:00 app[web.1]: [7101643d-e3f6-44fc-8f81-5b4e42542e97] app/views/layouts/application.html.erb:10

といったエラーがおきた

ActionView::Template::Error (Webpacker can't find application.js in /ideaFrameworks/public/packs/manifest.json. Possible causes:

とあったので、

rails webpack:install
heroku run bundle exec rails webpacker:compile

git push heroku master

をして、エラーが解決できた。

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?