Skip to content
This repository has been archived by the owner on Feb 15, 2019. It is now read-only.

Issue with babel 7 #512

Open
Danjavia opened this issue Nov 12, 2018 · 1 comment
Open

Issue with babel 7 #512

Danjavia opened this issue Nov 12, 2018 · 1 comment

Comments

@Danjavia
Copy link

Danjavia commented Nov 12, 2018

Hi, I'm try to update my react-native app with expo to sdk 31, and after make changes and update to babel 7 it returns the following error

[12:43:29] /Users/danny/native/lqn-finder/node_modules/@expo/ex-navigation/src/ExNavigation.js: /Users/danny/native/lqn-finder/node_modules/@expo/ex-navigation/src/ExNavigation.js: Unexpected export specifier type
[12:43:29]   44 | export { default as NavigationReducer } from './ExNavigationReducer';
[12:43:29]   45 | 
[12:43:29] > 46 | export * as NavigationStyles from './ExNavigationStyles';
[12:43:29]      |        ^
[12:43:29]   47 | 
[12:43:29]   48 | export { createRouter } from './ExNavigationRouter';
[12:43:29]   49 | export {

Here is my .babelrc configuration

{
  "presets": ["babel-preset-expo", "module:metro-react-native-babel-preset", "module:react-native-dotenv"],
  "plugins": [
    "@babel/plugin-syntax-export-namespace-from",
    "@babel/plugin-syntax-dynamic-import",
    ["@babel/plugin-proposal-decorators", { "legacy": true }],
    ["module-resolver", {
      "root": [
        "./src"
      ],
      "alias": {
        "components": "./src/components",
        "screens": "./src/screens",
        "services": "./src/services",
        "assets": "./src/assets",
        "router": "./src/router",
        "hocs": "./src/hocs"
      }
    }]
  ]
}

SDK upgrade info

More info about the upgrade to expo SDK 31 is https://blog.expo.io/expo-sdk-v31-0-0-is-now-available-cad6d0463f49

Thank you!

@rafaeluzzi
Copy link

Having this same issue. @Danjavia Did you found a way to fix this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants