Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

304
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!