question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ReferenceError: Can't find variable: _UIManager

See original GitHub issue

Description

Getting an error every time I try to run my app on the android and ios simulator. It’ll work for one but error out when i try to navigate on the other. tried cleaning cache, reinstalling nodemodules, cleaning project, etc.

Version

0.67.3

Output of npx react-native info

System: OS: macOS 12.0 CPU: (8) x64 Apple M1 Pro Memory: 70.20 MB / 16.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 16.13.1 - ~/.nvm/versions/node/v16.13.1/bin/node Yarn: Not Found npm: 8.1.4 - ~/.nvm/versions/node/v16.13.1/bin/npm Watchman: 2021.10.18.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.11.2 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: DriverKit 21.0.1, iOS 15.0, macOS 12.0, tvOS 15.0, watchOS 8.0 Android SDK: Not Found IDEs: Android Studio: 2020.3 AI-203.7717.56.2031.7784292 Xcode: 13.1/13A1030d - /usr/bin/xcodebuild Languages: Java: 11.0.10 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: ^17.0.2 => 17.0.2 react-native: ^0.67.3 => 0.67.3 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

npm run ios and npm run android:devdebug

will run on ios but errors out on android with the error message ReferenceError: Can't find variable: _UIManager

Snack, code example, screenshot, or link to a repository

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12

github_iconTop GitHub Comments

2reactions
rcmaplescommented, May 2, 2022

@justinairbase When using Metro Server in a local dev environment, we have seen some inconsistencies with Metro applying our babel transforms that can lead to issues like this. The workaround is to disable our '@fullstory/react-native' babel plugin in local dev environments. This shouldn’t be happening in production so long as Metro Server isn’t being used in production as well. If you’re still having issues, please reach out to mobile-support@fullstory.com and one of our Support Engineers will be happy to work with you.

0reactions
github-actions[bot]commented, Nov 7, 2022

This issue was closed because it has been stalled for 7 days with no activity.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReferenceError: Can't find variable: _UIManager
Our issue was caused by a babel plugin since we were using a third party service called FullStory. Again it seems unlikely you're...
Read more >
ReferenceError: Can't find variable - Codecademy
If you get an error like this it is because you are trying to enter a string as a parameter, but the computer...
Read more >
can t find variable atob - Autoinfo
Hi, how to solve 'ReferenceError: Cant find variable: require when import a ... It stillsays 'can't find variable atob'. but the function add()...
Read more >
ReferenceError : Can't find variable React - appsloveworld
Coding example for the question ReferenceError : Can't find variable React - React Navigation-React Native.
Read more >
ReferenceError: Can't find variable: _UIManager 이런 에러가 ...
ReferenceError : Can't find variable: _UIManager 이런 에러가 ... UIManager를 정상적으로 호출해오지 못하는게 문제 같은데 의견을 여쭤봅니다…
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found