Skip to content

[runtime not ready]: ReferenceError: Property 'document' doesn't exist #53802

@incredev34

Description

@incredev34

Description

I have upgraded the Expo version from 51.0.0 to the latest version v54.0.0. When I run the app on my emulator, it didn't work properly. I have attached the screenshot for that issue.

Image

Here's the package.json file:

{
"private": true,
"scripts": {
"start": "react-native start",
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint .",
"test": "jest",
"postinstall": "patch-package",
"eas-build-pre-install": "./scripts/eas-build-pre-install.sh"
},
"dependencies": {
"@auth0/nextjs-auth0": "^3.5.0",
"@circleco/headless-server-sdk": "^0.0.5",
"@gorhom/bottom-sheet": "^5.0.2",
"@react-native-async-storage/async-storage": "2.2.0",
"@react-native-community/datetimepicker": "8.4.4",
"@react-native-firebase/app": "^23.3.1",
"@react-native-firebase/messaging": "^23.3.1",
"@react-native/gradle-plugin": "^0.76.3",
"@react-navigation/bottom-tabs": "^6.6.1",
"@react-navigation/core": "^6.4.17",
"@react-navigation/native": "^6.1.18",
"@react-navigation/stack": "^6.4.1",
"@reduxjs/toolkit": "^2.2.7",
"@sanity/client": "^6.22.1",
"@sanity/image-url": "^1.1.0",
"@sentry/react-native": "~6.20.0",
"@sentry/wizard": "^3.36.0",
"@supabase/supabase-js": "^2.45.4",
"@tanstack/query-async-storage-persister": "^5.59.0",
"@tanstack/react-query": "^5.59.0",
"@tanstack/react-query-persist-client": "^5.59.0",
"@tsconfig/react-native": "^3.0.5",
"@types/hammerjs": "^2.0.45",
"axios": "^1.7.7",
"axios-logger": "^2.8.1",
"babel-plugin-module-resolver": "^5.0.2",
"date-fns": "^4.1.0",
"expo": "^54.0.0",
"expo-image": "~3.0.8",
"expo-splash-screen": "~31.0.10",
"expo-updates": "~29.0.10",
"jwt-decode": "^4.0.0",
"lottie-react-native": "~7.3.1",
"patch-package": "^8.0.0",
"posthog-react-native": "^3.4.0",
"react": "19.1.0",
"react-dom": "19.1.0",
"react-hook-form": "^7.53.0",
"react-native": "0.81.4",
"react-native-async-storage": "^0.0.1",
"react-native-auth0": "^4.6.0",
"react-native-bouncy-checkbox": "^4.1.2",
"react-native-config": "^1.5.3",
"react-native-date-picker": "5.0.8",
"react-native-device-info": "^14.0.4",
"react-native-gesture-handler": "~2.28.0",
"react-native-gradle-plugin": "^0.71.19",
"react-native-keyboard-aware-scroll-view": "^0.9.5",
"react-native-modal-datetime-picker": "^18.0.0",
"react-native-permissions": "^5.2.5",
"react-native-reanimated": "~4.1.0",
"react-native-redash": "^18.1.3",
"react-native-safe-area-context": "~5.6.0",
"react-native-screens": "~4.16.0",
"react-native-snap-carousel": "^3.9.1",
"react-native-svg": "15.12.1",
"react-native-toast-message": "^2.2.1",
"react-native-url-polyfill": "^2.0.0",
"react-native-uuid": "^2.0.2",
"react-native-webview": "13.15.0",
"react-native-worklets": "0.5.1",
"react-redux": "^9.1.2",
"reanimated-utils": "^1.1.0",
"redux-persist": "^6.0.0",
"reselect": "^5.1.1",
"styled-components": "^6.1.19"
},
"devDependencies": {
"@babel/core": "^7.26.0",
"@babel/preset-env": "^7.28.3",
"@babel/runtime": "^7.28.4",
"@react-native-community/cli": "^20.0.2",
"@react-native/babel-preset": "0.81.4",
"@react-native/eslint-config": "0.81.4",
"@react-native/metro-config": "0.81.4",
"@react-native/typescript-config": "0.81.4",
"@types/react": "~19.1.10",
"@types/react-native-snap-carousel": "^3.8.11",
"@types/react-query": "^1.2.9",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^30.1.2",
"babel-plugin-module-resolver": "^5.0.2",
"babel-preset-expo": "~54.0.0",
"eslint": "^8.19.0",
"jest": "^29.6.3",
"prettier": "2.8.8",
"react-native-devsettings": "^1.0.5",
"react-native-dotenv": "^3.4.11",
"react-test-renderer": "18.3.1",
"typescript": "~5.9.2"
},
"engines": {
"node": ">=18"
}
}

Steps to reproduce

Install the dependencies and run the app using yarn android.

React Native Version

0.81.4

Affected Platforms

Runtime - Android

Areas

Other (please specify)

Output of npx @react-native-community/cli info

System:
  OS: Windows 11 10.0.26100
  CPU: (20) x64 13th Gen Intel(R) Core(TM) i7-13650HX
  Memory: 8.10 GB / 39.69 GB
Binaries:
  Node:
    version: 22.14.0
    path: C:\nvm4w\nodejs\node.EXE
  Yarn:
    version: 1.22.22
    path: C:\nvm4w\nodejs\yarn.CMD
  npm:
    version: 10.9.2
    path: C:\nvm4w\nodejs\npm.CMD
  Watchman: Not Found
SDKs:
  Android SDK:
    API Levels:
      - "34"
      - "35"
    Build Tools:
      - 34.0.0
      - 34.0.0
      - 34.0.0
      - 34.0.0
      - 35.0.0
      - 35.0.0
      - 35.0.0
      - 35.0.0
      - 35.0.0
      - 35.0.1
      - 36.0.0
    System Images:
      - android-34 | Google APIs Intel x86_64 Atom
      - android-34 | Google Play Intel x86_64 Atom
      - android-35 | Google Play Intel x86_64 Atom
      - android-35 | Pre-Release 16 KB Page Size Google Play Intel x86_64 Atom
      - android-36 | Google APIs Intel x86_64 Atom
      - android-36 | Google Play Intel x86_64 Atom
      - android-36 | Pre-Release 16 KB Page Size Google APIs Intel x86_64 Atom
    Android NDK: Not Found
  Windows SDK: Not Found
IDEs:
  Android Studio: AI-243.24978.46.2431.13363775
  Visual Studio: Not Found
Languages:
  Java:
    version: 17.0.10
    path: /c/Program Files/Java/jdk-17/bin/javac
  Ruby: Not Found
npmPackages:
  "@react-native-community/cli":
    installed: 20.0.2
    wanted: ^20.0.2
  react:
    installed: 19.1.0
    wanted: 19.1.0
  react-native:
    installed: 0.81.4
    wanted: 0.81.4
  react-native-windows: Not Found
npmGlobalPackages:
  "*react-native*": Not Found
Android:
  hermesEnabled: true
  newArchEnabled: true
iOS:
  hermesEnabled: Not found
  newArchEnabled: Not found

Stacktrace or Logs

[runtime not ready]: ReferenceError: Property 'document' doesnt exist, stack:

MANDATORY Reproducer

N/A

Screenshots and Videos

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs: Author FeedbackNeeds: ReproThis issue could be improved with a clear list of steps to reproduce the issue.Type: ExpoIssues that are related to Expo CLI/EAS or other integration built on top of React NativeType: New ArchitectureIssues and PRs related to new architecture (Fabric/Turbo Modules)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions