relay: [modern] 1.3 Doesn't compile in React Native
After upgrading from 1.2 to 1.3 i’ve got this error when building the project:
error:
bundling failed: "TransformError: /Users/vladslavshabanov/projects/project/node_modules/relay-debugger-react-native-runtime/lib/index.js:
[BABEL] /Users/vladslavshabanov/projects/project/node_modules/relay-debugger-react-native-runtime/lib/index.js:
Unknown option: /Users/vladslavshabanov/projects/project/node_modules/react/index.js.Children.
Check out http://babeljs.io/docs/usage/options/ for more information about options.\n\nA common cause of this error is the presence of a configuration options object without the corresponding preset name.
Example:\n\nInvalid:\n `{ presets: [{option: value}] }`\nValid:\n `{ presets: [['presetName', {option: value}]] }`\n\nFor more detailed information on preset configuration, please see http://babeljs.io/docs/plugins/#pluginpresets-options.
(While processing preset: \"/Users/vladslavshabanov/projects/project/node_modules/react/index.js\")"
I suspect that issues is introduced by 87b5a9a
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 24
- Comments: 17 (5 by maintainers)
Commits related to this issue
- [package] Add missing Relay dev modules. See https://github.com/facebook/relay/issues/2074 — committed to artsy/emission by alloy 7 years ago
I’ll work on fixing this soon for the next Relay release
Having the same problem, looks like babel presets, specified in
node_modules/relay-debugger-react-native-runtime/.babelrc
are not installed, after adding them manuallyyarn add -D babel-preset-react babel-preset-stage-0 babel-preset-es2015
and restarting packager compiles fine, my.babelrc
:babel-plugin-relay
1.3.0react-relay
1.3.0relay-compiler
1.3.0@vshab can we close this?