Skip to content

[forked react-scripts] Overlay content contains unwanted chars #3831

Description

@thomasbertet

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:

  • The error message displayed in the overlay contains unwanted chars :
    selection_130

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 following

before(app){// This lets us open files from the runtime error overlay.app.use(errorOverlayMiddleware());},

in webpack.config.dev.js

entry: {app: [// Include hot reload.require.resolve('react-hot-loader/patch'),// Include custom hotDevClientrequire.resolve('react-dev-utils/webpackHotDevClient'),// Finally, this is your app's code:paths.appIndexJs,// We include the app code last so that if there is a runtime error during// initialization, it doesn't blow up the WebpackDevServer client, and// changing JS code would still trigger a refresh.],},

Big thanks to whoever can point me to the right direction !

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions