question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

react-native init fails with "RangeError: Maximum call stack size exceeded"

See original GitHub issue

I’m not doing anything fancy, just: react-native init PleaseWork After waiting a bit, the command exits with: error RangeError: Maximum call stack size exceeded

React Native version:

info Fetching system and libraries information...
System:
    OS: macOS 10.14.6
    CPU: (4) x64 Intel(R) Core(TM) M-5Y71 CPU @ 1.20GHz
    Memory: 361.93 MB / 8.00 GB
    Shell: 3.0.2 - /usr/local/bin/fish
  Binaries:
    Node: 12.9.0 - /usr/local/bin/node
    Yarn: 1.17.3 - /usr/local/bin/yarn
    npm: 6.11.2 - /usr/local/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 12.4, macOS 10.14, tvOS 12.4, watchOS 5.3
  IDEs:
    Android Studio: 3.4 AI-183.6156.11.34.5692245
    Xcode: 10.3/10G8 - /usr/bin/xcodebuild

Steps To Reproduce

  1. run react-native init PleaseWork
  2. Watch it ignore my pleas.

Describe what you expected to happen: I expected it to not crash while initializing a project.

I imagine this isn’t affecting many other people, it’s just strange that it crashes repeatedly when doing the literal first step in the process of creating an app.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

6reactions
redaphidcommented, Aug 26, 2019

@dulmandakh I’m literally only running react-native init PleaseWork. That’s it. None of my code is involved.

5reactions
e-r-wcommented, Sep 5, 2019

This is happening to me as well for react-native v0.60.0, v0.60.4 & v0.60.5

info Fetching system and libraries information...
System:
    OS: macOS 10.14.3
    CPU: (8) x64 Intel(R) Core(TM) i7-7820HQ CPU @ 2.90GHz
    Memory: 1.99 GB / 16.00 GB
    Shell: 5.3 - /bin/zsh
  Binaries:
    Node: 10.15.0 - ~/.nvm/versions/node/v10.15.0/bin/node
    Yarn: 1.17.3 - ~/.yarn/bin/yarn
    npm: 6.4.1 - ~/.nvm/versions/node/v10.15.0/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  SDKs:
    iOS SDK:
      Platforms: iOS 11.4, macOS 10.13, tvOS 11.4, watchOS 4.3
  IDEs:
    Xcode: 9.4.1/9F2000 - /usr/bin/xcodebuild

@redaphid I fixed this by removing react-native as a global install and replacing it with react-native-cli instead!

Read more comments on GitHub >

github_iconTop Results From Across the Web

React Native debugging - Maximum call stack size exceeded
Issue and Steps to Reproduce Starting the debugger from nuclide and attaching to it results in "Maximum call stack size exceeded" error.
Read more >
React-native debugging error: Maximum call stack size ...
Sometimes calling a recursive function over and over again, causes the browser to send you Maximum call stack size exceeded error message as...
Read more >
npx react-native init fails due to Maximum call stack size ...
Just run npm cache clean --force. That usually works for me.
Read more >
Maximum call stack size exceeded (native stack ... - Reddit
I migrated an app and a changed the build.gradlew file. Right now i'm getting this error when i run the android version of...
Read more >
npx react-native init fails due to Maximum call stack size ...
Coding example for the question npx react-native init fails due to Maximum call stack size exceeded npm error-React Native.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found