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

Support for the experimental syntax 'exportNamespaceFrom' isn't currently enabled #511

Open
zakster12 opened this issue Sep 5, 2018 · 3 comments

Comments

@zakster12
Copy link

zakster12 commented Sep 5, 2018

I have this issue when trying to use the ex-navigation.

My package.json:

{
"dependencies": {
    "@expo/ex-navigation": "^4.2.0",
    "react": "16.4.1",
    "react-native": "0.56.0",
    "react-native-maps": "^0.13.0"
  },
  "devDependencies": {
    "@babel/plugin-proposal-decorators": "^7.0.0",
    "@babel/plugin-syntax-dynamic-import": "^7.0.0",
    "babel-jest": "23.4.2",
    "babel-preset-react-native": "^5",
    "eslint-config-rallycoding": "^3.2.0",
    "jest": "23.5.0",
    "react-test-renderer": "16.4.1"
  },
  "jest": {
    "preset": "react-native"
  }
}

My .babelrc is:
{ "presets": [ "react-native" ], "env": { "development": { "plugins": [ "@babel/plugin-syntax-dynamic-import" ] } } }

I tried with

{
  "presets": ["react-native-stage-0/decorator-support"]
}

but have other issues which some mentioned that they fixed with the first part of the code which I shared. Any suggestions?

screen shot 2018-09-05 at 13 31 25

@milesegan
Copy link

Installing this plugin fixed this for me:

https://babeljs.io/docs/en/next/babel-plugin-syntax-export-namespace-from.html

@elie222
Copy link
Contributor

elie222 commented Jan 11, 2019

Doesn't seem to have worked for me:

{
  "presets": ["babel-preset-expo"],
  "plugins": ["@babel/plugin-syntax-export-namespace-from"],
  "env": {
    "development": {
      "plugins": []
    },
    "production": {
      "plugins": ["transform-remove-console"]
    }
  }
}

Any suggestions? Tried with the plugin in env.development too, but no luck.

@elie222
Copy link
Contributor

elie222 commented Jan 11, 2019

Updating the package from:

export * as NavigationStyles from './ExNavigationStyles';

to:

import * as NavigationStyles from './ExNavigationStyles';
export { NavigationStyles };

Seems to have worked.

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

3 participants