You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey guys,
I'm updating a project to 0.46 and I ran in several issues. I tried to reproduce them on a new app with success
I created a new app with:
react-native init rn46crash --version react-native@0.46.0-rc.2
Everything went fine. When I tried to start the app with xcode, the app is building fine, but the packager runs in the following error:
/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:328
throw e;
^
Error: Couldn't find preset "env" relative to directory "/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/regenerator-transform" (While processing preset: "/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-preset-react-native/index.js")
at /Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:293:19
at Array.map (native)
at OptionManager.resolvePresets (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:275:20)
at OptionManager.mergePresets (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:264:10)
at OptionManager.mergeOptions (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:249:14)
at OptionManager.init (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-core/lib/transformation/file/options/option-manager.js:368:12)
at compile (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-register/lib/node.js:103:45)
at loader (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-register/lib/node.js:144:14)
at Object.require.extensions.(anonymous function) [as .js] (/Users/xxx/Documents/Development/Apps/rn-46-crash/rn46crash/node_modules/babel-register/lib/node.js:154:7)
at Module.load (module.js:503:32)
Process terminated. Press <enter> to close the window
I have a similar issue - the project was working, I decided to remove all node_modules to check that all works well, then started to get those messages.
option a) - downgrade to 0.45
option b) (Although did not work) - run react-native start in one tab first, and then run react-native run-ios in the other tab
Hey guys,
I'm updating a project to 0.46 and I ran in several issues. I tried to reproduce them on a new app with success
I created a new app with:
react-native init rn46crash --version react-native@0.46.0-rc.2
Everything went fine. When I tried to start the app with xcode, the app is building fine, but the packager runs in the following error:
I created a repository with the issue:
compojoom/rn46crash@6f2df82 - this commit crashes
This one is fine:
compojoom/rn46crash@9e3672d - I've renamed .babelrc and it's being used.
The text was updated successfully, but these errors were encountered: