Skip to content

Webpacker::Manifest::MissingEntryError despite being in the manifest.js #2462

Closed
@samstickland

Description

@samstickland

Hi,

We have the following error after deploying to Heroku, using Rails 6.0.2.1 and Webpacker gem 4.2.2, rails/webpacker 4.2.2, webpack 4.41.2 and using Ruby 2.6.4

Webpacker::Manifest::MissingEntryError:
Webpacker can't find forum-info in /app/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:
{
  "entrypoints": {
    "forum-info": {
      "js": [
        "/packs/js/forum-info-79c4a0c398564ab51a80.js"
      ],
      "js.map": [
        "/packs/js/forum-info-79c4a0c398564ab51a80.js.map"
      ]
    },
    "general-stats": {
      "css": [
        "/packs/css/general-stats-7b7a01f2.css"
      ],
      "js": [
        "/packs/js/general-stats-5290e3f71170925bfe61.js"
      ],
      "js.map": [
        "/packs/js/general-stats-5290e3f71170925bfe61.js.map"
      ]
    }
  },
  "forum-info.js": "/packs/js/forum-info-79c4a0c398564ab51a80.js",
  "forum-info.js.map": "/packs/js/forum-info-79c4a0c398564ab51a80.js.map",
  "general-stats.css": "/packs/css/general-stats-7b7a01f2.css",
  "general-stats.js": "/packs/js/general-stats-5290e3f71170925bfe61.js",
  "general-stats.js.map": "/packs/js/general-stats-5290e3f71170925bfe61.js.map"
}

This is after adding the forum-info component. The general-stats component was functionally correctly before.

As you can see the forum-info is in the manifest.js. I've also logged into an Heroku dyno instance and confirmed that the manifest and generated JS files are there.

This all works correctly locally in dev mode.

I'm utterly stumped and don't know where I should continue my investigation. Any help would be greatly appreciated!

$ yarn list | grep webpack
├─ @rails/[email protected]
│  ├─ case-sensitive-paths-webpack-plugin@^2.2.0
│  ├─ compression-webpack-plugin@^3.0.0
│  ├─ optimize-css-assets-webpack-plugin@^5.0.3
│  ├─ pnp-webpack-plugin@^1.5.0
│  ├─ terser-webpack-plugin@^2.2.1
│  ├─ webpack-assets-manifest@^3.1.1
│  ├─ webpack-cli@^3.3.10
│  ├─ webpack-sources@^1.4.3
│  └─ webpack@^4.41.2
├─ [email protected]
├─ [email protected]
│  └─ webpack-sources@^1.0.1
├─ [email protected]
│  └─ webpack-sources@^1.1.0
│  └─ webpack-sources@^1.1.0
├─ [email protected]
│  └─ last-call-webpack-plugin@^3.0.0
├─ [email protected]
├─ [email protected]
│  └─ webpack-sources@^1.4.3
├─ [email protected]
│  └─ webpack-sources@^1.0.0
├─ [email protected]
├─ [email protected]
│  └─ webpack-log@^2.0.0
├─ [email protected]
│  ├─ webpack-dev-middleware@^3.7.2
│  ├─ webpack-log@^2.0.0
├─ [email protected]
├─ [email protected]
├─ [email protected]
│  ├─ terser-webpack-plugin@^1.4.3
│  ├─ [email protected]
│  │  ├─ webpack-sources@^1.4.0
│  ├─ webpack-sources@^1.4.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions