Failed to parse source map index.js.map after upgrading to CRA 5/Webpack 5
The project was recently upgraded from using Craco to CRA5, the same warning showed up for dozens of libraries but upgrading them to the latest versions fixed the issue. We're left with the only warning coming from react-image.
See the error below:

Node version: v16.14.0 NPM version: 8.5.3 react-scripts: ^5.0.0 react-image: ^4.0.3
It doesn't seem like there is a sourcemap included for any of the builds. Need to see how to remove that sourcemap comment
also seeing this
Would it be preferable to include the sourcemap or to implement #890?
remove it?
cc @deskoh
cc @deskoh
Since it's not a complicated library suggest to remove it? Any consideration or strong use case to include source map for 3rd party libs?
My argument would make that it provides more context to errors allowing users to either determine how they missuses the component leading to the error or helping the user pinpoint the point of error leading to better bug reports.
Guess I'll take cues from some other libs and see what makes sense. Thanks all!
I'm running into this as well and really need it to be fixed. Otherwise the only way to get my project to run is to turn off all sourcemaps, which is not ideal.
fixed in https://github.com/mbrevda/react-image/commit/b605b71066f70d4f64cdcbf4a8796cfd2ebe5d22 by disabling sourcemaps