-
Notifications
You must be signed in to change notification settings - Fork 24.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[0.57.0-rc.4] TypeError: undefined is not an object (evaluating '_this._setComponentRef.bind') #21055
Comments
Finally the reproductible exemple is working, that was a cache issue, and I solved the issue in my project using beta.47 version of babel |
I was also struggling for hours with this issue, and the module.exports = {
'presets': [
'module:metro-react-native-babel-preset',
'module:react-native-dotenv',
],
'sourceMaps': true,
'plugins': [
'@babel/transform-flow-strip-types',
'@babel/proposal-class-properties',
'@babel/proposal-object-rest-spread',
'@babel/transform-runtime'
],
}; Credits for solution to #20150 (comment) |
I've tried everything suggested but I still have the same problem. package.json
babel.config.js
|
Try: Worked for me |
on windows the temp is located here: C:\Users\YOUR_USERNAME\AppData\Local\Temp\metro-cache, clearing this folder worked for me |
@Foskas Did you find a solution? |
Environment
React Native Environment Info:
Description
It's look like #19763 and #20588, but nothing tried from theses issues helped me to solve the problem
Thank you for your time :-)
Reproducible Demo
Initiate new native project
react-native init --version 0.57.0-rc.4 TestApp
Use any Animated.Image component inside App.js for example:
The text was updated successfully, but these errors were encountered: