question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Xcode shell script errors after update to Babel 7 / RN 0.57

See original GitHub issue

Current 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.

Xcode (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:closed
  • Created 5 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

3reactions
tido64commented, Feb 1, 2019

Can you try adding export EXTRA_PACKAGER_ARGS="--progress verbose" somewhere before you call react-native-xcode.sh?

1reaction
nbenninkcommented, Feb 1, 2019

Nice that works. I’m still have an issue with release builds but that’s most likely caused by something else. Thanks.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native version mismatch - Stack Overflow
I use rm -rf $TMPDIR/react-* to get rid of any cached builds. If that doesn't work, I try to build the app in...
Read more >
unable to resolve your shell environment - You.com | The search ...
Description. After updating to RN 0.57.0, I get. error: bundling failed: Error: Unable to resolve module `schedule/tracking`.
Read more >
React Native Upgrade Helper
React Native 0.57 includes 599 commits by 73 different contributors, it has improvements to Accessibility APIs, Babel 7 stable support and more.
Read more >
v5.0.0 - React Native Firebase
... Support React Native versions ^0.56.0 to ^0.57.0 ... Update build script to Babel 7 & @invertase/babel-preset-react-native-syntax ...
Read more >
Upgrading React Native to version 0.59 and beyond: a step-by ...
you're on version 0.59+ of React Native and can run the new upgrade command using react-native upgrade which is based on rn-diff-purge and ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found