Skip to content
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

undefined is not an object (evaluating 'r.default') #20422

Closed
dubu012 opened this issue Jul 27, 2018 · 4 comments
Closed

undefined is not an object (evaluating 'r.default') #20422

dubu012 opened this issue Jul 27, 2018 · 4 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@dubu012
Copy link

dubu012 commented Jul 27, 2018

Start with debug.apk on device

"dependencies": {
"native-base": "^2.7.1",
"react": "16.4.1",
"react-native": "0.56.0",
"react-native-elements": "^0.19.1",
"react-native-snap-carousel": "^3.7.2",
"react-native-swiper": "^1.5.13",
"react-native-vector-icons": "^4.6.0",
"react-navigation": "^1.5.11"
},
"devDependencies": {
"babel-jest": "23.4.0",
"babel-preset-react-native": "5.0.2",
"jest": "23.4.1"
},
"jest": {
"preset": "react-native"
}
}
11111111111

@react-native-bot
Copy link
Collaborator

We are automatically closing this issue because it does not appear to follow any of the provided issue templates.

Please make use of the bug report template to let us know about a reproducible bug or regression in the core React Native library.

If you'd like to start a discussion, check out https://discuss.reactjs.org or follow the discussion template.

@react-native-bot react-native-bot added Ran Commands One of our bots successfully processed a command. 📋No Template labels Jul 27, 2018
@Anujmoglix
Copy link

I am also facing this issue. I am getting this issue when build apk from reference https://stackoverflow.com/questions/35283959/build-and-install-unsigned-apk-on-device-without-the-development-server

@Anujmoglix
Copy link

Still didn't get the solution of it, please respond.

@ashishchauhan05
Copy link

So the cause of error is just stupid.
In node_modules/react-navigation/src/navigators/DrawerNavigator.js there is imported TabRouter, which seems like component (starts with upper case), but in reality is just function, so when the code reaches const contentRouter = TabRouter(routeConfigs, tabsConfig); it throws that error because it does not resolve it as function? It does not even run it.
This is some new babel config stuff or something, which is just weird space of js for me...

So one way to fix this is to rename all TabRouter in that file to tabRouter. I hate to modify node_modules files, I bet there must be way to say to compiler (or whatever) that TabRouter as function is ok?

Its working for me.

@facebook facebook locked as resolved and limited conversation to collaborators Jul 27, 2019
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Jul 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

4 participants