Giter VIP home page Giter VIP logo

Comments (4)

Ashoat avatar Ashoat commented on May 2, 2024

I am not sure why this is occurring. Perhaps it has to do with a quirk in your build environment. Do you have a custom .babelrc set up, or are you using Haul or something?

from redux-helpers.

tostr7191 avatar tostr7191 commented on May 2, 2024

We have changed the following in middleware.js:

# removed at the bottom:
export {
  createReactNavigationReduxMiddleware,
  createDidUpdateCallback,
  initializeListeners,
  createNavigationPropConstructor,
};

# added export directly in front of the functions

Now it does no longer crash there. Our .babelrc is nothing special I think:

{
  "presets": ["react-native"]
}

Babel packages:

  "devDependencies": {
    "babel-cli": "^6.26.0",
    "babel-core": "^6.26.3",
    "babel-eslint": "^8.2.3",
    "babel-jest": "23.0.1",
    "babel-plugin-transform-runtime": "^6.23.0",
    "babel-polyfill": "^6.23.0",
    "babel-preset-env": "^1.7.0",
    "babel-preset-react": "^6.24.1",
    "babel-preset-react-native": "^4.0.0",
    "babel-preset-stage-2": "^6.24.1",
<snip>

I see that it might be a problem on our side, but I can't really figure out where to look, do you see anything that's looking wrong from your perspective?

(We are using node v8.11.3 btw)

from redux-helpers.

Ashoat avatar Ashoat commented on May 2, 2024

That's really weird. I can't imagine what's going wrong with the export syntax. You're sure there's nothing non-standard in your build system? You're using a stock react-native init or create-react-native-app config?

from redux-helpers.

tostr7191 avatar tostr7191 commented on May 2, 2024

Hi

We have solved the problem, how exactly I can't really tell. But deleting the yarn.lock file and reinstalling all packages made the problem disappear. Probably something messed up among some larger upgrades we have done that just happened to trigger this specific error!

Thanks for your help and sorry for the inconvenience :)
tostr

from redux-helpers.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.