Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-2489

Webpacker isn't compiled and can't load JS assets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • None
    • None
    • System
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Hide
      • Following these steps using latest MacOS X version and all the stated component versions in the guide.
      • Log into the master portal.
      Show
      Following these steps using latest MacOS X version and all the stated component versions in the guide. Log into the master portal.

    Description

      When logging into the admin dashboard on master I get the following exception raised:

      ActionView::Template::Error (Webpacker can't find dashboard.js in /Users/kevinprice/porta/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:
      {
      }
      ):
          2:   = stylesheet_link_tag 'vendor/c3'
          3:
          4: = content_for :javascripts do
          5:   = javascript_pack_tag 'dashboard'
          6:
          7: .Dashboard
          8:   div.Dashboard-widgets
        app/views/provider/admin/dashboards/show.html.slim:5:in `block in _app_views_provider_admin_dashboards_show_html_slim___4492585489674507786_70300100313460'
        app/views/provider/admin/dashboards/show.html.slim:4:in `_app_views_provider_admin_dashboards_show_html_slim___4492585489674507786_70300100313460'
        lib/three_scale/middleware/dev_domain.rb:25:in `call'
        lib/three_scale/middleware/dev_domain.rb:25:in `call'
        lib/three_scale/middleware/multitenant.rb:116:in `_call'
        lib/three_scale/middleware/multitenant.rb:111:in `call'
      
      
        Rendered /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/templates/rescues/_source.erb (45.6ms)
        Rendered /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/templates/rescues/_trace.html.erb (14.8ms)
        Rendered /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/templates/rescues/_request_and_response.html.erb (1.8ms)
        Rendered /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/actionpack-4.2.11.1/lib/action_dispatch/middleware/templates/rescues/template_error.html.erb within rescues/layout (306.9ms)
      

      I've tried running the rake task that I'd expect to resolve this issue:

      bundle exec rake webpack:compile
      

      I get the following error though.

      sh: line 1: 19184 Abort trap: 6           indexer 2>&1
      /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/webpacker-3.3.1/lib/webpacker/webpack_runner.rb:11:in `exec': No such file or directory - /Users/kevinprice/porta/node_modules/.bin/webpack (Errno::ENOENT)
      	from /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/webpacker-3.3.1/lib/webpacker/webpack_runner.rb:11:in `block in run'
      	from /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/webpacker-3.3.1/lib/webpacker/webpack_runner.rb:10:in `chdir'
      	from /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/webpacker-3.3.1/lib/webpacker/webpack_runner.rb:10:in `run'
      	from /Users/kevinprice/.rvm/gems/ruby-2.3.6/gems/webpacker-3.3.1/lib/webpacker/runner.rb:6:in `run'
      	from ./bin/webpack:15:in `<main>'
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-keprice Kevin Price
            Kevin Price Kevin Price
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: