Repository navigation
Closed
Labels
Platform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Type: DiscussionLong running discussion.Long running discussion.🔩Test InfrastructureTest infrastructure and continuous integration.Test infrastructure and continuous integration.
Description
Tests are currently failing with:
error: bundling failed: TypeError: Cannot read property 'bindings' of null
at Scope.moveBindingTo (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/scope/index.js:978:13)
at BlockScoping.updateScopeInfo (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:364:17)
at BlockScoping.run (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:330:12)
at PluginPass.BlockStatementSwitchStatementProgram (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/babel-plugin-transform-es2015-block-scoping/lib/index.js:70:24)
at newFn (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/visitors.js:237:21)
at NodePath._call (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/path/context.js:65:20)
at NodePath.call (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/path/context.js:40:17)
at NodePath.visit (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/path/context.js:100:12)
at TraversalContext.visitQueue (/private/tmp/react-native-fsA0i4iC/EndToEndTest/node_modules/@babel/traverse/lib/context.js:142:16)
BUNDLE [ios, dev] ./index.js ░░░░░░░░░░░░░░░░ 0.0% (0/1), failed.
Example: https://circleci.com/gh/facebook/react-native/44078
Metadata
Metadata
Assignees
Labels
Platform: iOSiOS applications.iOS applications.Resolution: LockedThis issue was locked by the bot.This issue was locked by the bot.Type: DiscussionLong running discussion.Long running discussion.🔩Test InfrastructureTest infrastructure and continuous integration.Test infrastructure and continuous integration.
Activity
AndrewJack commentedon Jun 8, 2018
related? babel/babel#7627
hramos commentedon Jun 8, 2018
This is because we need to use the react-native-babel-preset v5.0.0 which is tagged as @next instead of @latest on npm in order to avoid breaking
react-native initfor people not on master (see 34bd776).I think we can temporarily have
init.jsuse v5.0.0 in order to fix master, and once that hits a stable release, we can flip @latest on npm to v5.0.x.hramos commentedon Jun 8, 2018
Waiting for Circle CI to finish running, but so far it looks like the error is resolved when we explicitly use v5.0.0: https://circleci.com/gh/hramos/react-native/2642
ShivamPokhriyal commentedon Aug 4, 2018