vives-iotapplications-2018 / iot-tv

IoT TV
MIT License
0 stars 0 forks source link

Webpacker::Manifest::MissingEntryError in Temperatures#index #19

Open sillevl opened 5 years ago

sillevl commented 5 years ago

Running master branch fails with the following error:

Started GET "/temperatures" for 127.0.0.1 at 2018-11-15 23:48:14 +0100
   (0.1ms)  SELECT "schema_migrations"."version" FROM "schema_migrations" ORDER BY "schema_migrations"."version" ASC
  ↳ C:/tools/ruby25/lib/ruby/gems/2.5.0/gems/activerecord-5.2.1/lib/active_record/log_subscriber.rb:98
Processing by TemperaturesController#index as HTML
  Rendering temperatures/index.html.erb within layouts/application
  Temperature Load (0.2ms)  SELECT "temperatures".* FROM "temperatures"
  ↳ app/views/temperatures/index.html.erb:21
  Device Load (0.1ms)  SELECT  "devices".* FROM "devices" WHERE "devices"."id" = ? LIMIT ?  [["id", 1], ["LIMIT", 1]]
  ↳ app/views/temperatures/index.html.erb:25
  Device Load (0.2ms)  SELECT  "devices".* FROM "devices" WHERE "devices"."id" = ? LIMIT ?  [["id", 2], ["LIMIT", 1]]
  ↳ app/views/temperatures/index.html.erb:25
  Device Load (0.2ms)  SELECT  "devices".* FROM "devices" WHERE "devices"."id" = ? LIMIT ?  [["id", 3], ["LIMIT", 1]]
  ↳ app/views/temperatures/index.html.erb:25
  Device Load (0.1ms)  SELECT  "devices".* FROM "devices" WHERE "devices"."id" = ? LIMIT ?  [["id", 4], ["LIMIT", 1]]
  ↳ app/views/temperatures/index.html.erb:25
  Rendered temperatures/index.html.erb within layouts/application (30.5ms)
[Webpacker] Compiling…
[Webpacker] Compiled all packs in E:/VIVES/iot-tv/public/packs
Completed 500 Internal Server Error in 1119ms (ActiveRecord: 1.8ms)

ActionView::Template::Error (Webpacker can't find hello_vue.js in E:/VIVES/iot-tv/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:
{
}
):
    4:     <title>IotTv</title>
    5:     <%= csrf_meta_tags %>
    6:     <%= csp_meta_tag %>
    7:     <%= javascript_pack_tag 'hello_vue' %>
    8:     <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
    9:     <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
   10:   </head>

app/views/layouts/application.html.erb:7:in `_app_views_layouts_application_html_erb__579087786_67745600'

Steps to reproduce:

git clone git@github.com:vives-iotapplications-2018/iot-tv.git
cd iot-tv
bundle install
yarn
rails db:migrate
rails db:seed
rails s

The error is shown on every route. eg: http://localhost:3000/temperatures

Trapn commented 5 years ago

Workaround:

npm install