-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
[forked react-scripts] Overlay content contains unwanted chars #3831
Comments
This looks to me like you're not showing a build-time error early enough and so you end up showing a runtime error thrown in this case by webpack instead. |
It might also be that you're showing both, but the runtime overlay z-index is higher than the build overlay z-index. Although in latest versions of |
Thanks for your help ! I'm using the latest version of react-dev-utils (ie. ^5.0.0). It seems there are not two different error overlays at the same time. The error is clearly thrown at build-time, I did a syntax mistake on purpose to try the error overlay. |
I think you want to debug why this doesn't get called. |
Nice that is what I was looking for, a nice hint to start debugging. Thanks so much Dan 👍 |
You could create a new project and then look side by side at which events are received by the client. |
Yep I have another project running a proper version of CRA, will do ! |
I found the issue, and now it works properly :) What I did wrong when upgrading manually to latest
|
Can you search if this was proposed before? I don’t remember. |
I found this revision that was just before you switched to custom dev client. You were doing Then I found the first version of the webpackHotDevClient where you could not specify any custom location. Not sure if this what you asked me to look for, anyway, it seems the custom dev client never had this ability. |
I guess I'm asking if this is related to #1588 or not. |
Oh I see ... Yes this is related. It fixes the main issue with having the correct socket port. Thanks for pointing it out, did not even think about checking if a PR was made about this... 👍 Another part I saw that is not compatible with using a proxy is the ability to open the editor when clicking on the overlay. We are doing a fetch without any ability to set the custom port/host. Also, when you will be able to do so, we will also need to set CORS headers. I will ask in this PR if this is worth adding as well. Thanks anyway, I think we might close this issue. |
Hi there,
Is this a bug report?
No
❤️
Really love this project & what this community does, so first thanks for that ! :)
I'm not really reporting an issue, I'm more asking for an hint on where I'm missing something.
Context
I'm using a fork of react-scripts that lives inside a private repo.
I have kind of forked react-scripts, and customized it to my specific needs.
At this end, I manipulated a bit the files inside the
config
folder, and I'm reporting any new feature/bugfix on react-scripts to my project quite manually. This might be linked to my following issue 🙉As a side note, I did fork like a year ago to be able to configure HMR, CSS Modules & SASS.
My issue:
I'm wondering if any of you can point me to why this might happen. I'm guessing that maybe someone already ran into this issue.
I mean the overlay itself is displaying well, in the command line output, the results is great, but unfortunately not in the overlay's content :(
Related webpack config
in
webpackDevServer.config.js
I have the followingin
webpack.config.dev.js
Big thanks to whoever can point me to the right direction !
The text was updated successfully, but these errors were encountered: