Hello World

Be Happy!

error Command "webpack" not found


Processing by EncodesController#index as HTML
  Rendering encodes/index.html.erb within layouts/application
  Encode Load (8.7ms)  SELECT "encodes".* FROM "encodes"
  ↳ app/views/encodes/index.html.erb:20
  Rendered encodes/index.html.erb within layouts/application (Duration: 48.1ms | Allocations: 8517)
[Webpacker] Compiling...
[Webpacker] Compilation failed:
yarn run v1.16.0
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.


warning ../package.json: No license field
warning ../package.json: No license field
error Command "webpack" not found.

Completed 500 Internal Server Error in 1110ms (ActiveRecord: 35.6ms | Allocations: 19259)


  
ActionView::Template::Error (Webpacker can't find application in /Users/project/CW-OVP/public/packs/manifest.json. Possible causes:
1. You want to set webpacker.yml value of compile to true for your environment
   unless you are using the `webpack -w` or the webpack-dev-server.
2. webpack has not yet re-run to reflect updates.
3. You have misconfigured Webpacker's config/webpacker.yml file.
4. Your webpack configuration is not creating a manifest.
Your manifest contains:
{
}
):
     6:     <%= csp_meta_tag %>
     7: 
     8:     <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %>
     9:     <%= javascript_pack_tag 'application', 'data-turbolinks-track': 'reload' %>
    10:   </head>
    11: 
    12:   <body>
  
app/views/layouts/application.html.erb:9
^C- Gracefully stopping, waiting for requests to finish

Solution
$ bundle exec rails webpacker:install
#rails (32)
List