react-native: undefined is not a function(evaluation 'object.getOwnPropertyDescriptors(arguments[i])')

https://github.com/facebook/react-native/issues/23092

Unfortunately this exact same issue strikes again with the release of Babel v7.5.0.

These are the Babel related dependencies I am having:

    "@babel/core": "7.4.5",
    "@babel/plugin-proposal-class-properties": "7.4.4",
    "@babel/plugin-proposal-decorators": "7.4.4",
    "@babel/plugin-transform-flow-strip-types": "7.4.4",
    "@babel/preset-flow": "7.0.0",
    "babel-eslint": "10.0.2",
    "babel-jest": "24.8.0",
    "metro-react-native-babel-preset": "0.54.1",

With the package-lock.json I generated a few days ago everything’s fine with npm install, but if I try to do it without the lockfile the error appears. Judging from my lockfile’s diff I can say that a few secondary Babel dependencies were updated to v7.5.0 without the lockfile (eg. @babel/generator, @babel/helper-create-class-features-plugin) so am pretty sure this is a Babel issue again.

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Reactions: 13
  • Comments: 20

Commits related to this issue

Most upvoted comments

Same issue. This is really frustrating

Exact same problem with Typescript and Babel. Named re-export are undefined.

I’m having the same problem. in react native typescript template re-export feature is removed from the output. its a typescript transformer plugin issue in my case

Hello.

Yet ,I have same issue.

    "@babel/core": "^7.5.5",
    "@babel/helpers": "^7.5.5",
    "@babel/runtime": "^7.5.5",
    "metro-react-native-babel-preset": "^0.55.0",
    "babel-eslint": "10.0.2",

Please help this

Think this has been fixed in Babel: https://github.com/babel/babel/issues/10166

Insert to package.json to hotfix:

"resolutions": { "@babel/plugin-proposal-object-rest-spread": "7.4.4" }

Same issue. Please fix the issue ASAP.