gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

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

Open KshitijD21 opened this issue 1 year ago • 1 comments

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

  • [X] Expo
  • [ ] React Native CLI
  • [ ] Next
  • [ ] Web
  • [ ] Android
  • [X] iOS

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"
  }
}

KshitijD21 avatar Jun 06 '24 08:06 KshitijD21

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

Viraj-10 avatar Jun 07 '24 07:06 Viraj-10