expo / ex-navigation

Route-centric navigation for React Native
997 stars 201 forks source link

Upgraded to React-Native@0.40 and getting UnhandledPromiseRejectionWarning #403

Closed robbykim closed 7 years ago

robbykim commented 7 years ago

Hi, I upgraded to react-native@0.40 and am getting the following error:

transformed 688/689 (100%)(node:824) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 946): SyntaxError: SyntaxError /Users/robbyk/Documents/NewFoundry/umbsc/node_modules/@exponent/ex-navigation/src/ExNavigation.js: Unexpected token (34:9) (node:824) DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

When I searched the code to the line number/column in question, it leads me to this line

export * as NavigationStyles from './ExNavigationStyles';

where the 9th column is the space between * and 'as'. I'm not really sure what's going on here..

davingreen commented 7 years ago

Did you solve this? I'm getting a syntax error at the same line with 0.40.0

robbykim commented 7 years ago

yeah, my issue was accidentally replacing my babelrc file. but overall, i decided to forgo 0.40 for now and stuck with 0.39.2 because i was having issues with archiving builds