Skip to content

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

Open
@KshitijD21

Description

@KshitijD21

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

  • Expo
  • React Native CLI
  • Next
  • Web
  • Android
  • 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"
  }
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions