react-native-community / upgrade-support

A central community-backed place to request and give help when upgrading your app.
MIT License
254 stars 2 forks source link

[0.62.1] Release: Can't find variable: LogBoxNotificationContainer #45

Open exentrich opened 4 years ago

exentrich commented 4 years ago

Environment

System: OS: macOS 10.15.4 CPU: (8) x64 Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz Memory: 547.79 MB / 16.00 GB Shell: 5.7.1 - /bin/zsh Binaries: Node: 12.14.1 - /usr/local/bin/node Yarn: 1.21.1 - /usr/local/bin/yarn npm: 6.13.4 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman Managers: CocoaPods: 1.9.1 - /usr/local/bin/pod SDKs: iOS SDK: Platforms: iOS 13.4, DriverKit 19.0, macOS 10.15, tvOS 13.4, watchOS 6.2 Android SDK: Not Found IDEs: Android Studio: 3.6 AI-192.7142.36.36.6241897 Xcode: 11.4/11E146 - /usr/bin/xcodebuild Languages: Java: Not Found Python: 2.7.16 - /usr/bin/python npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.1 => 0.62.1 npmGlobalPackages: react-native: Not Found

Upgrading version

From 0.61.5 to 0.62.1

Description

Only in Release build this error happen: Can't find variable: LogBoxNotificationContainer

LogBox

Development build works okay. I followed all upgrade steps.

I tried with no luck:

Please get me a tip how to fix this problem

lucasbento commented 4 years ago

cc @rickhanlonii, maybe you can help with this?

exentrich commented 4 years ago

0.62.2 doesn't fix the problem :(

rickhanlonii commented 4 years ago

@exentrich thanks for reporting! Is it possible to provide a repo to reproduce? Are there any logs in Metro/adb/logcat? Is it possible to see the JS line this is being thrown on? Which version of react-native-community/cli are you using (the info input says it wasn't found)?

There's only one LogBoxNotificationContainer variable, and it should be in scope: https://github.com/facebook/react-native/blob/0.62-stable/Libraries/YellowBox/YellowBox.js#L52