Xcode shell script errors after update to Babel 7 / RN 0.57
See original GitHub issueCurrent Behavior
I’m upgrading from React Native 0.56 to React Native 0.57. I have to update babel 7 to make this work. So I followed these steps from the React Native changelog. And some of the tips in #411. But I get a lot of errors from the haul shell script when I build in xCode afterwards.
(and +/- 1200 more like this)
I’m using version 0.45.1
of metro-react-native-babel-preset
in my .babelrc
as suggested by the React Native upgrade guide. But the same issue appears when using babel-preset-react-native
(both V4 and V5).
Expected Behavior
There is no exit code so the build completes “successful” and everything in the app seems to work. But preferably without all the errors in xcode. I still have issue #487 when I make a release build which should be fixed with this haul version.
Haul Configuration (webpack.haul.js)
let srcAppPath = path.join(__dirname, 'src');
let nodeModulesPath = path.join(__dirname, 'node_modules');
module.exports = ({platform}, defaults) => {
const config = {
entry: `./index.js`,
resolve: {
...defaults.resolve,
plugins: [...defaults.resolve.plugins],
modules: [srcAppPath, nodeModulesPath],
extensions: ['.native.js', '.js', '.ejs', '.jsx', '.less', 'html', 'json', `.${platform}.js`, ...defaults.resolve.extensions],
alias: {
_COMPONENTS: 'js/components',
_LIBS: 'js',
_CONFIG: 'config',
},
},
};
return config;
};
Your Environment
software | version |
---|---|
Haul | RC-09, RC-10 and RC-11 (tried multiple versions) |
react-native | 0.57.8 |
node | 10.15.0 |
npm or yarn | npm 6.4.1 |
Issue Analytics
- State:
- Created 5 years ago
- Comments:7 (3 by maintainers)
Top GitHub Comments
Can you try adding
export EXTRA_PACKAGER_ARGS="--progress verbose"
somewhere before you callreact-native-xcode.sh
?Nice that works. I’m still have an issue with release builds but that’s most likely caused by something else. Thanks.