jk-gan / redux-flipper

Redux middleware for React Native for Flipper
MIT License
160 stars 21 forks source link

Could not get unknown property 'FLIPPER_VERSION' #15

Closed Bohmaster closed 4 years ago

Bohmaster commented 4 years ago

I've followed the installation steps and got this error:

FAILURE: Build failed with an exception.

This is my code:

`import { createStore, applyMiddleware } from 'redux'; import thunk from 'redux-thunk';

import reducers from './reducers';

export default configureStore = () => { let store;

if (__DEV__) {
    const createDebugger = require('redux-flipper').default;
    store = createStore(
        reducers,
        {}, 
        applyMiddleware(createDebugger, thunk)
    );
} else {
    store = createStore(
        reducers,
        {}, 
    );
}

return store;

}; ` RN version: 0.62.2 Flipper version: 0.37.0

plwai commented 4 years ago

Is your app upgraded from RN version lesser than 0.62.0 manually?

Flipper will only be enabled by default if the application template is newly created by RN version starting 0.62.0 or upgraded by using an upgrade tool.

Below is the steps for manual upgrade: https://fbflipper.com/docs/getting-started/react-native

If you are doing the upgrade manually, you need to add the setting below into android > grandle.properties as well

FLIPPER_VERSION=0.37.0

jk-gan commented 4 years ago

I think we can close this issue due to a long lack of response from the author.