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
- React Native sync for revisions 54f297a...ab075a2 Summary: This sync includes the following changes: - **[ab075a232](https://github.com/facebook/react/commit/ab075a232 )**: Do not unmount layout effe... — committed to facebook/react-native by sammy-SC 2 years ago
- React Native sync for revisions 54f297a...ab075a2 Summary: This sync includes the following changes: - **[ab075a232](https://github.com/facebook/react/commit/ab075a232 )**: Do not unmount layout effe... — committed to OlimpiaZurek/react-native by sammy-SC 2 years ago
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.
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" }
More info here
Same issue. Please fix the issue ASAP.