Skip to content
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 3 commits into from
Dec 28, 2021

Conversation

jasonfb
Copy link
Contributor

@jasonfb jasonfb commented Nov 20, 2021

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.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bin/webpack not Webpacker?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you're right it was webpack before my change on that line was idle and not intentional

@justin808
Copy link
Contributor

@guillaumebriday We should merge after the comment is addressed.

@jasonfb
Copy link
Contributor Author

jasonfb commented Nov 20, 2021

this is mostly about 1 and 2; 3 (was previously 1) I just cleaned up the verbiage to match "Possible causes" as it was written out of style with the others.

Copy link
Contributor

@justin808 justin808 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one question

LGTM otherwise

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`)
Copy link
Contributor

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?

Copy link
Member

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@guillaumebriday guillaumebriday self-requested a review November 23, 2021 23:44
Copy link
Member

@guillaumebriday guillaumebriday left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you remove the npm install please?

@justin808 justin808 added this to the 6.0 milestone Dec 5, 2021
@jasonfb
Copy link
Contributor Author

jasonfb commented Dec 20, 2021

@justin808 @guillaumebriday -- done. Can you tell me just out of curiosity why you are recommending against npm in favor of yarn (I use yarn myself cause I find it a little smoother).

FYI... this was researched by (and thanks the folks who fell down this rabbit hole)...
https://stackoverflow.com/questions/54113179/rails-webpackermanifestmissingentryerror-in-homeindex/70326851?noredirect=1#comment124478710_70326851

@justin808
Copy link
Contributor

Hi @jasonfb, a number of years ago, yarn worked better. It's hard to support both equally well. If you think these could be supported equally well, please submit a PR with your justifications.

@guillaumebriday guillaumebriday merged commit c511554 into rails:master Dec 28, 2021
@guillaumebriday
Copy link
Member

Thanks @jasonfb and @justin808

koic added a commit to koic/webpacker that referenced this pull request Dec 28, 2021
Follow up to rails#3232.

This PR suppresses the following RuboCop offense.

```console
% bundle exec rubocop
(snip)

lib/webpacker/manifest.rb:108:107: C: [Correctable]
Layout/TrailingWhitespace: Trailing whitespace detected.
1. You forgot to install node packages (try `yarn install`) or are
running an incompatible version of Node
                                       ^

64 files inspected, 1 offense detected, 1 offense auto-correctable
Error: Process completed with exit code 1.
```

https://github.com/rails/webpacker/runs/4651343194
guillaumebriday pushed a commit that referenced this pull request Dec 29, 2021
Follow up to #3232.

This PR suppresses the following RuboCop offense.

```console
% bundle exec rubocop
(snip)

lib/webpacker/manifest.rb:108:107: C: [Correctable]
Layout/TrailingWhitespace: Trailing whitespace detected.
1. You forgot to install node packages (try `yarn install`) or are
running an incompatible version of Node
                                       ^

64 files inspected, 1 offense detected, 1 offense auto-correctable
Error: Process completed with exit code 1.
```

https://github.com/rails/webpacker/runs/4651343194
KingTiger001 added a commit to KingTiger001/Rails-web-pack-project that referenced this pull request Jan 15, 2023
Follow up to rails/webpacker#3232.

This PR suppresses the following RuboCop offense.

```console
% bundle exec rubocop
(snip)

lib/webpacker/manifest.rb:108:107: C: [Correctable]
Layout/TrailingWhitespace: Trailing whitespace detected.
1. You forgot to install node packages (try `yarn install`) or are
running an incompatible version of Node
                                       ^

64 files inspected, 1 offense detected, 1 offense auto-correctable
Error: Process completed with exit code 1.
```

https://github.com/rails/webpacker/runs/4651343194
smartech7 pushed a commit to smartech7/ruby-webpacker that referenced this pull request Aug 4, 2023
Follow up to rails/webpacker#3232.

This PR suppresses the following RuboCop offense.

```console
% bundle exec rubocop
(snip)

lib/webpacker/manifest.rb:108:107: C: [Correctable]
Layout/TrailingWhitespace: Trailing whitespace detected.
1. You forgot to install node packages (try `yarn install`) or are
running an incompatible version of Node
                                       ^

64 files inspected, 1 offense detected, 1 offense auto-correctable
Error: Process completed with exit code 1.
```

https://github.com/rails/webpacker/runs/4651343194
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants