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 'api.topTabs') #6925

Open
bmwertman opened this issue Jan 22, 2021 · 3 comments
Open

undefined is not an object (evaluating 'api.topTabs') #6925

bmwertman opened this issue Jan 22, 2021 · 3 comments
Labels
needs triage triage: bug user: requires reproduction This issue requires a reproduction before maintainers can work on it

Comments

@bmwertman
Copy link

🐛 Bug Report

I'm getting the following warning even though I'm only using bottomTabs in my project.

[Fri Jan 22 2021 11:21:00.843]  WARN     Possible Unhandled Promise Rejection (id: 0):
TypeError: undefined is not an object (evaluating 'api.topTabs')
parse@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:102890:16
parse@[native code]
setRoot@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:100162:47
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:241061:48
tryCallOne@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:4876:16
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:4977:27
_callTimer@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:31413:17
_callImmediatesPass@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:31452:17
callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:31669:33
__callImmediates@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:4198:35
http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3984:34
__guard@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:4181:15
flushedQueue@http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false:3983:21
flushedQueue@[native code]
invokeCallbackAndReturnFlushedQueue@[native code]### Have you read the [Contributing Guidelines on issues](https://wix.github.io/react-native-navigation/docs/meta-contributing/)?

To Reproduce

Happens at initial build running react-native run-ios --simulator='iPhone 11' or clicking reload` from the simulator menu

Your Environment

  • React Native Navigation version: 6.4.0
  • React Native version: 0.63.4
  • Platform(s) (iOS, Android, or both?): iOS, but I haven't built in Android so possibly there too
  • Device info (Simulator/Device? OS version? Debug/Release?): Simulator, iOS deployment target: 12.0, Debug

Reproducible Demo

I'm not sure how to simply replicate the issue but a Google search for api.topTabs only brings up this page https://github.com/wix/react-native-navigation/blob/master/lib/src/commands/LayoutTreeParser.ts

@jinshin1013
Copy link
Contributor

@bmwertman Could you please provide a minimal reproduction on Github for us to replicate the issue?

@jinshin1013 jinshin1013 added the user: requires reproduction This issue requires a reproduction before maintainers can work on it label Jan 23, 2021
@sergeyzhukov
Copy link

same issue

@Desintegrator
Copy link

same

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs triage triage: bug user: requires reproduction This issue requires a reproduction before maintainers can work on it
Projects
None yet
Development

No branches or pull requests

4 participants