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

Compilation error in react-native #51

Open
walidvb opened this issue Jul 12, 2016 · 1 comment
Open

Compilation error in react-native #51

walidvb opened this issue Jul 12, 2016 · 1 comment

Comments

@walidvb
Copy link

walidvb commented Jul 12, 2016

Hey,

Couldn't find any help online or in IRC.
I keep getting a compilation error when building:
screen shot 2016-07-12 at 17 13 22

I can't figure out what configuration to change to get it to work :( . here is my project: https://github.com/walidvb/passsport-mobile/tree/redux-ui

Thanks!

@walidvb walidvb changed the title Compilation error Compilation error in react-native Jul 13, 2016
@mauron85
Copy link

mauron85 commented Oct 3, 2016

EDIT: Previous solution didn't actually worked.

Following should work for react-native version: 0.33

According to this
there might be conflicting .babelrc. In my case it was redux-ui itself.

So I had to delete it:

rm node_modules/redux-ui/.babelrc

Then installed (version 1.0.1)

npm i babel-preset-react-native-stage-0 --save-dev

Created .babelrc in root dir with:

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

Reset cache after installing modules:

watchman watch-del-all
./node_modules/react-native/packager/packager.sh start --reset-cache

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