-
Notifications
You must be signed in to change notification settings - Fork 81
webpack-rails now prevents errors from being shown in console #63
Comments
Ah, right. Yes, I'm happy for it to be made a flag. I didn't consider this a breaking change, as at the time I considered that I agree regarding a CHANGELOG. I think I will start tracking changes, On Tue, Oct 18, 2016 at 2:31 PM, Rhys van der Waerden <
Michael Pearson |
Also, recent changes have been merged (or will be soon) that filter out On Tue, Oct 18, 2016 at 6:07 PM, Michael Pearson [email protected]
Michael Pearson |
@mipearson Right. The webpack log is displayed in console for me via react-dev-server. I'm not sure if this is an optional config or not, but it's one of the main advantages of using webpack - so you don't need to lose your page when you make a mistake. Particularly when using hot module reloading it's pretty annoying to be dragged back to that sprockets-esque error screen. |
@mipearson Any chance of cutting a release with an option on top of |
We've remained locked to |
@rhys-vdw I need a config option not available in |
Oh that might be a problem for us soon when we move to a container based
system. I've linked the commit in the issue report above, so you could fork
and reverse it.
Is there a changelog somewhere? I couldn't find one.
…On Sat, Jan 14, 2017, 8:43 AM Nathan ***@***.***> wrote:
@rhys-vdw <https://github.com/rhys-vdw> I need a config option not
available in 0.9.7 or else I can't setup my webpack-dev-server properly
so it's accessible both inside and outside a VM. I actually tried rolling
back after reading your response.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#63 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAyLWbllXx8sdQWwHLsL7SOlWiqermvLks5rR-_jgaJpZM4KZVyx>
.
|
Fixed merged in to 0.9.10 |
We've just upgraded to latest. How do we disable the page load on JS error? |
Actually it seems to be okay now. I experienced an issue where I first loaded the page and was given the Rails error screen with my linter errors and warnings. When I fixed them and reloaded the page the errors remained. I'm not sure if this is related but I'll report in more detail if I see it again. |
Okay, I've just had the error again: Full text:
Compare to my webpack output:
Note that the errors described in the Rails error have been corrected, but on reload I still get the same error screen from Rails.
It seems the error information is being cached somehow and not updated on reload. Before this happened I played around by deliberately adding in compile errors into the view and HMR was presenting the errors as usual. Would you prefer I opened a new issue for this @mipearson ? |
Resolving all warnings and errors from ESLint permitted the page to load again, but until that time it will show the errors displayed the first time (not the current warnings and errors). |
Okay, not always. Now I can fix all the warnings and errors and reloading the page will not clear the error page. I can fix the error by restarting foreman. PS: Sorry for the influx of comments, @mipearson. I should also point out that I can probably find time to look into this problem myself if that would be helpful. |
Hi @mipearson. Thanks for webpack-rails! We've been using it successfully for the last few months, with no complaints until now.
Seems this commit prevents linter and compile errors from getting through to the browser console via webpack-dev-server. Instead I see this annoying Rails error screen:
This prevents the project from loading and is a show stopper. Is there a way to turn this off? Also, having this behaviour as default is a breaking change, so I think you should have bumped major version (if you're following semver).
Also I know it's a PITA, but it would be really helpful if you maintained a changelog somewhere. Took us a while to find the issue.
Anybody else hitting this problem: 0.9.7 seems to be the most recent working version.
The text was updated successfully, but these errors were encountered: