-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
provides two more common errors (fix suggestions) for Webpacker::Manifest::MissingEntryError #3232
Merged
Merged
Changes from 1 commit
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 either `npm install` or `yarn install`) | ||
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` | ||
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. Webpacker has not yet re-run to reflect updates. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. you're right it was |
||
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 | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
does
npm install
work with webpacker?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should but we never mentioned it anywhere so I suggest to remove it here too
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@jasonfb this is good, but please remove the "npm" part.
@guillaumebriday I'll fix this if we don't hear from @jasonfb. This is a helpful fix.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi sorry I will finish this ASAP.