App.js: Cannot read property 'filename' of undefined after update sdk to 31.0.0
After updating your Android SDK
Tue, 08 Jan 2019
This error has to do with a .babelrc config. Luckily for us, the fix is real quick. What you want to do is change your babel file.
Old babel file
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": ["transform-react-jsx-source"]
},
"production": {
"plugins": ["transform-remove-console"]
}
}
}
New babel file
{
"presets": ["babel-preset-expo"],
"env": {
"development": {
"plugins": []
},
"production": {
"plugins": ["transform-remove-console"]
}
}
}