-
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
Webpacker::Manifest::MissingEntryError despite being in the manifest.js #2462
Comments
Oh.. I've made some progress on this.. it's not the JS it's complaining that it can't find in the manifest.js, it's the CSS.. So onto trying to figure out why that isn't compiled.... |
Are you getting an error message further up in the log? |
Nope, no error further up.. This is the output from webpacker.. It's generating the CSS for the general-stats component (all Vue scoped CSS), but not for forum-info. Aside from that issue, I can also see that the size of the JS is suspiciously large:
|
Can you post Did you follow this? (I am not an expert on the Vue flow): https://github.com/rails/webpacker/blob/master/docs/css.md#using-css-with-vue-loader |
Sure, this is the package.json
and this is
And for reference this is
All the CSS is in |
There's something odd happening with the vue-loader, I think as the CSS output is a little different for forum-info and general-stats:
There's no |
Oh, that as just caused by I have however found that I can reproduce the problem locally by setting Still no closer to finding out why the CSS isn't extracted though... :/ |
The problem is that MiniCssExtractPlugin is not creating a css file, or its grouping all the css together. Here are a few things I found: webpack-contrib/mini-css-extract-plugin#113 (comment) It might be a general error with Can you check to see if |
Nope, no styles there.. I've found that it seems to be interaction with sass-loader, which has been added in order to import some SCSS files containing common variables. If I remove the sass-loader config then css is generated for forum-info. This is the configuration: config/webpack/loaders/sass.js:
and then in
|
I found a different approach / workaround. Instead of using the This way works with both with extract_css set to false and true, whereas the sass-loader configuration above silently fails to produce |
Ok, I think I found ultimate solution to the problem. The problem was caused because
The above also requires:
|
I had the same problem with a plain simple vue rails app on Rails 6.0.3.
|
Tested a plain vue app again in rails 6.0.3.1 and the problem seems to be fixed. |
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
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!
The text was updated successfully, but these errors were encountered: