gluestack / gluestack-ui

React & React Native Components & Patterns (import from library & copy-paste styles all the way to victory)
https://gluestack.io/
MIT License
1.79k stars 88 forks source link

Cannot convert undefined value to object when shifting from Expo 49 to Expo 51 #2221

Open KshitijD21 opened 1 month ago

KshitijD21 commented 1 month ago

Description

I encountered an error while upgrading my project from Expo 49 to Expo 51. The error message states: "Cannot convert undefined value to object." This issue occurs when I try to run the project after the upgrade.

CodeSandbox/Snack link

/

Steps to reproduce

No response

gluestack-ui Version

@gluestack-style/react: ^1.0.56,    @gluestack-ui/config: ^1.1.18,     @gluestack-ui/themed: ^1.1.28

Platform

Other Platform

No response

Additional Information

I followed the official Expo upgrade guide and ensured all dependencies were updated. Despite this, the error persists. This issue is blocking my development process.

Screenshot

Screenshot 2024-06-06 at 1 51 13 PM

package.json


{
  "main": "expo-router/entry",
  "dependencies": {
    "@gluestack-style/react": "^1.0.56",
    "@gluestack-ui/config": "^1.1.18",
    "@gluestack-ui/themed": "^1.1.28",
    "react-native-svg": "15.2.0",
  "expo": "^51.0.10",
    "sentry-expo": "~7.0.0"
  }
}
Viraj-10 commented 4 weeks ago

@KshitijD21, please provide a github repo with minimal reproduction.