Open zakster12 opened 6 years ago
Installing this plugin fixed this for me:
https://babeljs.io/docs/en/next/babel-plugin-syntax-export-namespace-from.html
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.
Updating the package from:
export * as NavigationStyles from './ExNavigationStyles';
to:
import * as NavigationStyles from './ExNavigationStyles';
export { NavigationStyles };
Seems to have worked.
I have this issue when trying to use the ex-navigation.
My package.json:
My .babelrc is:
{ "presets": [ "react-native" ], "env": { "development": { "plugins": [ "@babel/plugin-syntax-dynamic-import" ] } } }
I tried with
but have other issues which some mentioned that they fixed with the first part of the code which I shared. Any suggestions?