Skip to content

Commit

Permalink
provides two more common errors (fix suggestions) for Webpacker::Mani…
Browse files Browse the repository at this point in the history
…fest::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
  • Loading branch information
jasonfb authored Dec 28, 2021
1 parent 614cb1c commit c511554
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/webpacker/manifest.rb
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,14 @@ def manifest_type(pack_type)
def missing_file_from_manifest_error(bundle_name)
<<-MSG
Webpacker can't find #{bundle_name} in #{config.public_manifest_path}. 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.
1. You forgot to install node packages (try `yarn install`) or are running an incompatible version of Node
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`

This comment has been minimized.

Copy link
@rromanchuk
3. You have set compile: false (see `config/webpacker.yml`) for this environment
(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?)
4. webpack has not yet re-run to reflect updates.
5. You have misconfigured Webpacker's `config/webpacker.yml` file.
6. Your webpack configuration is not creating a manifest.
Your manifest contains:
#{JSON.pretty_generate(@data)}
MSG
Expand Down

0 comments on commit c511554

Please sign in to comment.