Webpack Module Warning: Failed to parse source map from “data” URL

If you’re experiencing this issue with react-scripts/cra version 5.0.0. You’ll need to add the following to your .env file

NOTE: this is not a fix. You are suppressing the source map warnings, but it may get you from seeing those warnings since all other solutions have not worked.

GENERATE_SOURCEMAP=false

or you can update your script to

"start": "GENERATE_SOURCEMAP=false react-scripts start",

Note: this is a temporary patch until 5.0.1 is released.
See create-react-app repo pull request
Update: 5.0.1 was release on April 2022. Changelog. The update did not fix this issue. Not sure when that will be 🤷🏾‍♂️

Leave a Comment