Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

React-Native Warning: unable to load source map

Just saw this warning working on a react-native app (ES6). The warning says:

Unable to load source map: "version" is a required argument.

It isn't clear to me where this is coming from and I was hoping someone could explain and/or tell me how to rectify. Doesn't prevent the app from working but I don't like ignoring stuff like this.

enter image description here

like image 874
toddmetheny Avatar asked May 21 '26 19:05

toddmetheny


1 Answers

Create .babelrc file at root of the project folder like below:

{
  "presets": ["react-native"],
  "sourceMaps": false
}
like image 71
Melih Mucuk Avatar answered May 24 '26 10:05

Melih Mucuk



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!