-
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
Images KO only on test environment (not development) after Webpack 4 upgrade #2152
Comments
In order to help debug, could you please post as much as you can of:
|
@jakeNiemiec Thank you for your quick answer, and all my apologies for the lack of information 😕 Thx in advance! |
@jakeNiemiec I can confirm that the problem seems to appear only on test environment: I just tried with my production mode and everything works fine. Also in production Webpacker is not in an isolated container (as test env.)... I'll continue digging ⛏️ [EDIT] As I guessed, by only changing the |
I can't dig in too much today, but you could you confirm if adding these missing lines from the docs fixes anything: https://www.diffchecker.com/gvk0auKz I think the |
@jakeNiemiec I confirm that adding the missing lines on
Apparently, declaring such packages as Babel or Stylelint as |
🙃 I should have caught that first. |
@jakeNiemiec Hmmm... The thing I don't get, is that it was working on production... Differences between |
There is a storied history to this problem. I link many relevant issues in #1880 but #1212 (comment) is a good, encompassing discussion.
I would crack open the packed files to see if there are any polyfills present. It may be skipping babel step, thus no error. |
Is this still an issue for you? Feel free to reopen if needed |
Hello everyone,
I recently upgraded my Rails app to Webpacker 4, following the docs. After a while (damn' you Babel...) everything seems working on my development environment. But for some reason on test environment, I got an issue with manifest.json not including my images (as it does for development).
I tried this and this but without any success 😞
I tried to figure what could be the differences between both environments, but nothing that could lead to that problem, I guess.
For your information I'm using a dockerized Rails application, with Webpacker on his own container for development mode, and everything on the same container (Webpacker and Rails) on test and production.
[EDIT]
Sorry I was not sure about what informations you would need... Here are what has been asked, with apologies:
javascript_pack_tag
helpers in views.CSS unique file is imported through the
stylesheet_pack_tag
helper. Fonts are imported directly in my SASS main file (using@font-face
). Images are also used in SASS files, but most of the time usingimage_pack_tag
helpers in views.3 & 4. Here are some gists, as asked:
The text was updated successfully, but these errors were encountered: