Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ignite new MyTestApp hangs on "Running React Native setup (~ 1 minute)" #172

Closed
2 of 4 tasks
romanchukenator opened this issue Jun 15, 2016 · 13 comments
Closed
2 of 4 tasks

Comments

@romanchukenator
Copy link

romanchukenator commented Jun 15, 2016

  • Issue does not already exist
  • Identify exactly what aspect your issue is about
    • ignite base application
    • ignite the cli
    • ignite generated code

I will also cancel the process and then run ignite new MyTestApp again and I'll sometimes push through to the next step "Installing Ignite dependencies (~30 seconds-ish)" and then it'll hang again. Rinse, repeat, I'll run ignite new MyTestApp and I'll push through to the next step and then end up at issue 138

Help? What's going on? I can't generate a new project!

I've deleted and reinstalled everything. I've updated react-native to the latest.

I've removed the stdio: 'ignore' from this.spawnCommand(command, commandOpts, {stdio: 'ignore'}) to have a look at the output but all I'm getting is nothing. The project init just hangs at "Running React Native setup (~ 1 minute)" without any messaging.

@GantMan
Copy link
Member

GantMan commented Jun 15, 2016

Hiya @romanchukenator !

Ok, so let's get digging because we both want this fixed! First, can you create a new project using react native?
ergo: react-native init MyTestApp

This step "Running React Native Setup" is actually doing this. So I'm interested if you get stuck somewhere in the gears, or right at the starting line.

Please report back what you find!

@romanchukenator
Copy link
Author

I turn on the --verbose flag and everything goes fine. Make my project, no errors. I'll run it without the --verbose flag and it's fine, too.

Now I went ahead and modified some code to this:

{
    key: 'reactNativeInit',
    value: function reactNativeInit() {
      var _this3 = this;

      var status = 'Running React Native setup (~ 1 minute)';
      this.spinner.start();
      this.spinner.text = status;
      var done = this.async();
      var command = 'react-native';
      var commandOpts = ['init', this.name, '--verbose'];
      this.spawnCommand(command, commandOpts).on('close', function () {
        _this3.spinner.stop();
        _this3.log(check + ' ' + status);
        done();
      });
    }
  }

So now I'm providing the ---verbose flag and ignite fires off perfectly every time! Hah! And now I'm making a full ignite project without a hitch. Hrm.

I ran the regular react-native init MyTestApp multiple times without the --verbose flag and on occasion it did hang, though. Not sure why the --verbose flag avoids any hanging.

@GantMan
Copy link
Member

GantMan commented Jun 15, 2016

that's wild! So maybe we'll add --verbose but hide the output?

would you think that solves the issue?

@romanchukenator
Copy link
Author

Maybe? I'm trying to look into this bit of weirdness. Not sure why a verbose output avoids oddities but I'm game for outputting verbose feedback and hiding it.

@GantMan
Copy link
Member

GantMan commented Jun 25, 2016

gonna close this one and consider revitalizing it should --verbose prove significant on a second machine.

@GantMan GantMan closed this as completed Jun 25, 2016
@ur23
Copy link

ur23 commented Dec 1, 2016

screen shot 2016-12-01 at 8 04 44 pm

Hi I am having the same issue of hanging during the Installing Ignite dependencies 1min-ish step. I tried twice and same issue, only thing I could think was Missing Android! notification (I thought this was because I just installed android studio on the same day). I do now know how to use --verbose and have not tried react-native init MyTestApp. I did have react native tutorial running yesterday in Xcode though. Thanks for any Time or help you may have to offer. Excited to try it out!

@luifer-villalba
Copy link

I have the same issue as ur23 😢

@GantMan
Copy link
Member

GantMan commented Dec 4, 2016

hrmmmmm not sure. Either of you available to screen share?

@GantMan

This comment has been minimized.

@GantMan
Copy link
Member

GantMan commented Dec 5, 2016

This was resolved for @ur23 - it was permissions during yarn install. If you find this issue, verify your npm AND your yarn, if you have it installed, are working correctly.

@prijindal
Copy link

I am having the same issue as @ur23, can you elaborate what did you do to fix this problem?

@dbilgin
Copy link

dbilgin commented Mar 23, 2019

Currently I am having the same issue. Firstly it says "Missing android SDK 23" even though I have specifically installed this SDK and then it just hangs with "Running React Native setup version 0.39.2 (~ 2 minutes-ish)".

@jamonholmgren
Copy link
Member

@iATsU Please open a new issue with as much detail as you can provide. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants