Skip to content

Commit c511554

Browse files
authored
provides two more common errors (fix suggestions) for Webpacker::Manifest::MissingEntryError (#3232)
* provides two more common errors (fix suggestions) for Webpacker::Manifest::MissingEntryError; see https://stackoverflow.com/questions/52639256/webpackermanifestmissingentryerror * puts back old veribalge for #4 (was #2) instead of * removing reference to npm
1 parent 614cb1c commit c511554

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

lib/webpacker/manifest.rb

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -105,11 +105,14 @@ def manifest_type(pack_type)
105105
def missing_file_from_manifest_error(bundle_name)
106106
<<-MSG
107107
Webpacker can't find #{bundle_name} in #{config.public_manifest_path}. Possible causes:
108-
1. You want to set webpacker.yml value of compile to true for your environment
109-
unless you are using the `webpack -w` or the webpack-dev-server.
110-
2. webpack has not yet re-run to reflect updates.
111-
3. You have misconfigured Webpacker's config/webpacker.yml file.
112-
4. Your webpack configuration is not creating a manifest.
108+
1. You forgot to install node packages (try `yarn install`) or are running an incompatible version of Node
109+
2. Your app has code with a non-standard extension (like a `.jsx` file) but the extension is not in the `extensions` config in `config/webpacker.yml`
110+
3. You have set compile: false (see `config/webpacker.yml`) for this environment
111+
(unless you are using the `webpack -w` or the webpack-dev-server, in which case maybe you aren't running the dev server in the background?)
112+
4. webpack has not yet re-run to reflect updates.
113+
5. You have misconfigured Webpacker's `config/webpacker.yml` file.
114+
6. Your webpack configuration is not creating a manifest.
115+
113116
Your manifest contains:
114117
#{JSON.pretty_generate(@data)}
115118
MSG

0 commit comments

Comments
 (0)