Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

300
Vistas
React Native IOS application error -> Unhandled JS Exception: Can't find variable: document -> when running in Xcode Simulator

I am creating an react-native application in VSCode and am receiving an error when trying to run the application in the iOS Xcode simulator. I had a perfectly working version of the application in chrome localhost, but since transferring the file over to a react-native project that includes the iOS and android files, I keep receiving this error. I have tried other online solutions dealing with storybook but still have had no luck. I will attach my package.json file. Anything helps. Thanks Package.json Error Recieved

Error Received on Xcode Simulator:

...

Unhandled JS Exception: Can't find variable: document

https://localhost:8081/index.bundle?platform=ios&dev=true$minify=false:1355:16loadModuleImplementation@http://localhost:8081/index.bundle?platform=ios&dev=true$minify=false:271:14guardedLoadModule@http://localhost:8081/index.bundle?platform=ios&dev=true$minify=false:163:47global code@http://locaclhost:8081/index.bundle?platofrm=ios&dev=true&minify=false:91090:4

...

Package.json File:

{
  "main": "index.js",
  "scripts": {
    "android": "react-native run-android",
    "ios": "react-native run-ios",
    "web": "expo start --web",
    "start": "react-native start"
  },
  "dependencies": {
    "@material-ui/core": "^4.12.3",
    "@material-ui/icons": "^4.11.2",
    "@material-ui/styles": "^4.11.4",
    "expo": "~42.0.1",
    "expo-splash-screen": "~0.11.2",
    "expo-status-bar": "~1.0.4",
    "expo-updates": "~0.8.1",
    "react": "^16.13.1",
    "react-dom": "16.13.1",
    "react-native": "~0.63.4",
    "react-native-gesture-handler": "~1.10.2",
    "react-native-reanimated": "~2.2.0",
    "react-native-screens": "~3.4.0",
    "react-native-unimodules": "~0.14.5",
    "react-native-web": "~0.13.12",
    "react-router-dom": "^5.3.0"
  },
  "devDependencies": {
    "@babel/core": "^7.9.0"
  },
  "private": true
}
about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda