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

Lots of Warnings after upgrading react-native version 0.76.3 #48194

Closed
trantuandatvietnam opened this issue Dec 10, 2024 · 10 comments
Closed

Lots of Warnings after upgrading react-native version 0.76.3 #48194

trantuandatvietnam opened this issue Dec 10, 2024 · 10 comments
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Newer Patch Available Resolution: Issue in another tool or repo An issue that was opened against React Native but in reality is affecting another tool or library

Comments

@trantuandatvietnam
Copy link

Description

After upgrading expo from version 51 to 52, which requires upgrading react-native to version 0.76.3. When I open the app, a lot of warnings are displayed, making the app seem to hang for a while. This error comes from the react-native library
image

Steps to reproduce

  1. Install react-native version 0.76.3
  2. Run app

React Native Version

0.76.3

Output of npx react-native info

System:
  OS: Windows 10 10.0.19045
  CPU: (8) x64 12th Gen Intel(R) Core(TM) i3-12100
  Memory: 1.27 GB / 15.72 GB
Binaries:
  Node:
    version: 20.10.0
    path: C:\Program Files\nodejs\node.EXE
  Yarn:
  Yarn:
    version: 1.22.22
    version: 1.22.22
    path: ~\AppData\Roaming\npm\yarn.CMD
    path: ~\AppData\Roaming\npm\yarn.CMD
  npm:
    version: 10.2.3
  npm:
    version: 10.2.3
    version: 10.2.3
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
    path: C:\Program Files\nodejs\npm.CMD
  Watchman: Not Found
  Watchman: Not Found
SDKs:
SDKs:
  Android SDK: Not Found
  Android SDK: Not Found
  Windows SDK: Not Found
  Windows SDK: Not Found
IDEs:
IDEs:
  Android Studio: AI-233.14808.21.2331.11709847
  Visual Studio: Not Found
Languages:
  Java:
    version: 19.0.1
    path: /c/Program Files/Common Files/Oracle/Java/javapath/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 15.1.2
    wanted: ^15.1.2
  react:
    installed: 18.3.1
    wanted: 18.3.1
  react-native:
    installed: 0.76.3
    wanted: 0.76.3
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: false
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

info React Native v0.76.5 is now available (your project is running on v0.76.3).
info Changelog: https://github.com/facebook/react-native/releases/tag/v0.76.5
info Diff: https://react-native-community.github.io/upgrade-helper/?from=0.76.3&to=0.76.5
info For more info, check out "https://reactnative.dev/docs/upgrading?os=windows".

Screenshots and Videos

image

@trantuandatvietnam trantuandatvietnam added Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Needs: Triage 🔍 labels Dec 10, 2024
@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - 0.76.5. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot react-native-bot added Needs: Author Feedback Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. labels Dec 10, 2024
@react-native-bot
Copy link
Collaborator

Tip

Newer version available: You are on a supported minor version, but it looks like there's a newer patch available - undefined. Please upgrade to the highest patch for your minor or latest and verify if the issue persists (alternatively, create a new project and repro the issue in it). If it does not repro, please let us know so we can close out this issue. This helps us ensure we are looking at issues that still exist in the most recent releases.

@react-native-bot
Copy link
Collaborator

Warning

Missing reproducer: We could not detect a reproducible example in your issue report. Please provide either:

@trantuandatvietnam
Copy link
Author

I upgraded to the latest version of React-native but still having the same problem

@github-actions github-actions bot added Needs: Attention Issues where the author has responded to feedback. and removed Needs: Author Feedback labels Dec 10, 2024
@cortinico
Copy link
Contributor

This doesn't happen on a empty project.

  • Install react-native version 0.76.3
  • Run app

Please provide a valid reproducer

@trantuandatvietnam
Copy link
Author

This is a company project and I cannot provide further information. My problem was after I upgraded expo from version 51 to 52, which required updating version of react native. Specifically, my package.json file looks like this:
"dependencies": {
"@bugsnag/expo": "^49.0.0",
"@expo/vector-icons": "^14.0.2",
"@gorhom/bottom-sheet": "^4.4.5",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/datetimepicker": "8.0.1",
"@react-native-community/netinfo": "11.3.1",
"@react-native-firebase/analytics": "^17.3.2",
"@react-native-firebase/app": "^17.3.2",
"@react-native-firebase/messaging": "^17.3.2",
"@react-navigation/bottom-tabs": "^6.6.1",
"@react-navigation/drawer": "^6.7.2",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.4.1",
"@shopify/flash-list": "1.6.4",
"deprecated-react-native-prop-types": "^4.0.0",
"expo": "^51.0.32",
"expo-application": "~5.9.1",
"expo-auth-session": "~5.5.2",
"expo-barcode-scanner": "~13.0.1",
"expo-blur": "~13.0.2",
"expo-brightness": "~12.0.1",
"expo-camera": "^15.0.15",
"expo-constants": "~16.0.2",
"expo-crypto": "~13.0.2",
"expo-device": "~6.0.2",
"expo-file-system": "~17.0.1",
"expo-haptics": "~13.0.1",
"expo-image": "^1.12.15",
"expo-intent-launcher": "~11.0.1",
"expo-linear-gradient": "~13.0.2",
"expo-linking": "~6.3.1",
"expo-local-authentication": "~14.0.1",
"expo-localization": "~15.0.3",
"expo-location": "~17.0.1",
"expo-notifications": "^0.28.16",
"expo-random": "~14.0.1",
"expo-secure-store": "~13.0.2",
"expo-splash-screen": "~0.27.5",
"expo-status-bar": "~1.12.1",
"expo-updates": "^0.25.24",
"expo-web-browser": "~13.0.3",
"intl": "^1.2.5",
"lodash": "^4.17.21",
"metro-react-native-babel-transformer": "^0.77.0",
"native-base": "^3.1.0",
"numeral": "^2.0.6",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-intl": "^6.1.1",
"react-native": "0.74.5",
"react-native-drax": "^0.10.2",
"react-native-expo-image-cache": "^4.1.0",
"react-native-gesture-handler": "~2.16.1",
"react-native-get-random-values": "~1.11.0",
"react-native-maps": "1.18.0",
"react-native-modal": "^13.0.0",
"react-native-modal-datetime-picker": "13.1.2",
"react-native-pager-view": "6.3.0",
"react-native-qrcode-svg": "^6.1.1",
"react-native-reanimated": "~3.10.1",
"react-native-render-html": "4.2.4",
"react-native-safe-area-context": "4.10.5",
"react-native-screens": "3.31.1",
"react-native-scroll-into-view": "^2.0.2",
"react-native-segmented-picker": "^2.0.2",
"react-native-size-matters": "^0.4.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "15.2.0",
"react-native-svg-transformer": "^0.14.3",
"react-native-swipe-list-view": "^3.2.9",
"react-native-tab-view": "^3.5.2",
"react-native-uuid": "^2.0.1",
"react-native-web": "~0.19.6",
"react-native-webview": "13.8.6",
"scandit-react-native-datacapture-barcode": "6.25.0",
"scandit-react-native-datacapture-core": "6.25.0",
"styled-components": "^5.3.0",
"styled-system": "^5.1.5",
"swr": "^2.0.3",
"unstated-next": "^1.1.0"
},

After update:

"dependencies": {
"@bugsnag/expo": "^49.0.0",
"@expo/vector-icons": "^14.0.2",
"@gorhom/bottom-sheet": "^4.4.5",
"@react-native-async-storage/async-storage": "1.23.1",
"@react-native-community/datetimepicker": "8.2.0",
"@react-native-community/netinfo": "11.4.1",
"@react-native-firebase/analytics": "^17.3.2",
"@react-native-firebase/app": "^17.3.2",
"@react-native-firebase/messaging": "^17.3.2",
"@react-navigation/bottom-tabs": "^6.6.1",
"@react-navigation/drawer": "^6.7.2",
"@react-navigation/native": "^6.1.18",
"@react-navigation/native-stack": "^6.11.0",
"@react-navigation/stack": "^6.4.1",
"@shopify/flash-list": "1.7.1",
"dayjs": "^1.11.13",
"deprecated-react-native-prop-types": "^4.0.0",
"expo": "^52.0.17",
"expo-application": "~6.0.1",
"expo-auth-session": "~6.0.1",
"expo-barcode-scanner": "~13.0.1",
"expo-blur": "~14.0.1",
"expo-brightness": "~13.0.2",
"expo-camera": "~16.0.9",
"expo-constants": "~17.0.3",
"expo-crypto": "~14.0.1",
"expo-device": "~7.0.1",
"expo-file-system": "~18.0.4",
"expo-haptics": "~14.0.0",
"expo-image": "~2.0.3",
"expo-intent-launcher": "~12.0.1",
"expo-linear-gradient": "~14.0.1",
"expo-linking": "~7.0.3",
"expo-local-authentication": "~15.0.1",
"expo-localization": "~16.0.0",
"expo-location": "~18.0.3",
"expo-notifications": "~0.29.11",
"expo-random": "~14.0.1",
"expo-secure-store": "~14.0.0",
"expo-splash-screen": "~0.29.16",
"expo-status-bar": "~2.0.0",
"expo-updates": "~0.26.10",
"expo-web-browser": "~14.0.1",
"intl": "^1.2.5",
"lodash": "^4.17.21",
"metro-react-native-babel-transformer": "^0.77.0",
"native-base": "^3.1.0",
"numeral": "^2.0.6",
"react": "18.3.1",
"react-dom": "18.3.1",
"react-intl": "^6.1.1",
"react-native": "0.76.3",
"react-native-drax": "^0.10.2",
"react-native-expo-image-cache": "^4.1.0",
"react-native-gesture-handler": "~2.20.2",
"react-native-get-random-values": "~1.11.0",
"react-native-maps": "1.18.0",
"react-native-modal": "^13.0.0",
"react-native-modal-datetime-picker": "13.1.2",
"react-native-pager-view": "6.5.1",
"react-native-qrcode-svg": "^6.1.1",
"react-native-reanimated": "~3.16.1",
"react-native-render-html": "4.2.4",
"react-native-safe-area-context": "4.12.0",
"react-native-screens": "~4.1.0",
"react-native-scroll-into-view": "^2.0.2",
"react-native-segmented-picker": "^2.0.2",
"react-native-size-matters": "^0.4.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "15.8.0",
"react-native-svg-transformer": "^0.14.3",
"react-native-swipe-list-view": "^3.2.9",
"react-native-tab-view": "^3.5.2",
"react-native-uuid": "^2.0.1",
"react-native-web": "~0.19.6",
"react-native-webview": "13.12.5",
"scandit-react-native-datacapture-barcode": "6.25.0",
"scandit-react-native-datacapture-core": "6.25.0",
"styled-components": "^5.3.0",
"styled-system": "^5.1.5",
"swr": "^2.0.3",
"unstated-next": "^1.1.0"
},

@cortinico
Copy link
Contributor

This is a company project and I cannot provide further information. My problem was after I upgraded expo from version 51 to 52, which required updating version of react native. Specifically, my package.json file looks like this:

Then please

  1. use this template: https://github.com/react-native-community/reproducer-react-native
  2. add all your dependencies
  3. make sure you can recreate the same error you're seeing
  4. share it here

@NickGerleman
Copy link
Contributor

Does the error in the app, or error in RN DevTools show more context? The end of the warning in the screenshot started saying "Component stack", and that's the thing that would point to what code or library is causing this error.

@trantuandatvietnam
Copy link
Author

This is a company project and I cannot provide further information. My problem was after I upgraded expo from version 51 to 52, which required updating version of react native. Specifically, my package.json file looks like this:

Then please

  1. use this template: https://github.com/react-native-community/reproducer-react-native
  2. add all your dependencies
  3. make sure you can recreate the same error you're seeing
  4. share it here

Thank for reply. I detected the isssue. It's from react-native-drax library. This lib was quite old

@cortinico
Copy link
Contributor

Thank for reply. I detected the isssue. It's from react-native-drax library. This lib was quite old

Closing as per this last comment

@cortinico cortinico added Resolution: Issue in another tool or repo An issue that was opened against React Native but in reality is affecting another tool or library and removed Needs: Repro This issue could be improved with a clear list of steps to reproduce the issue. Needs: Attention Issues where the author has responded to feedback. labels Dec 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Debugger Issues related to React Native DevTools or legacy JavaScript/Hermes debugging Newer Patch Available Resolution: Issue in another tool or repo An issue that was opened against React Native but in reality is affecting another tool or library
Projects
None yet
Development

No branches or pull requests

4 participants