Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

297
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda