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

218
Views
Can't start metro server "attachToServer is not a function"

Looking at the original docs, I ran npx react-native init AwesomeProject and didn't change anything.

I get attachToServer is not a function error when I run npx react-native start or yarn start. Both don't work. I didn't have this issue before I don't know what might be causing it. Using expo I can start metro so this is probably react-native cli issue.

Here are the package versions.

"dependencies": {
  "react": "17.0.2",
  "react-native": "0.67.2"
},
  "devDependencies": {
  "@babel/core": "^7.12.9",
  "@babel/runtime": "^7.12.5",
  "@react-native-community/eslint-config": "^2.0.0",
  "babel-jest": "^26.6.3",
  "eslint": "7.14.0",
  "jest": "^26.6.3",
  "metro-react-native-babel-preset": "^0.66.2",
  "react-test-renderer": "17.0.2"
},

The error screenshot

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!