Closed subodha closed 2 years ago
Since keep Installing React Native Colo Loco for hours I stop the process by Ctrl + C Then open the project directory in the terminal
Installed react-native-colo-loco manually in to project by running yarn add react-native-colo-loco
Then I could run my application successfully.
@subodha Can you provide npx ignite-cli doctor
pls?
Oops, never mind, you did provide that.
So I'm able to spin up an app successfully. Hm.
My ignite doctor:
❯ npx ignite-cli doctor
System
platform darwin
arch arm64
cpu 10 cores Apple M1 Max
directory Temp /Users/jh/Code/Temp
JavaScript (and globally-installed packages)
node 17.0.1 /opt/homebrew/bin/node
npm 8.1.0 /opt/homebrew/bin/npm
npm 8.1.0
yarn 1.22.17 /opt/homebrew/bin/yarn
create-next-app 9.4.4
detox-cli 17.11.0
ios-deploy 1.11.4
react-native-cli 2.0.1
sharp-cli 1.15.0
ts-node 8.8.2
typescript 3.8.2
vercel 21.3.3
ynpx 2.1.1
Ignite
ignite-cli 7.8.1 /Users/jh/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/jh/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 1.8.0_312 /Users/jh/.sdkman/candidates/java/current/bin/java
android home - /Users/jh/Library/Android/sdk
iOS
xcode 13.1
cocoapods 1.11.2 /opt/homebrew/bin/pod
It's weird that yours stalls like that. I'm not entirely sure why.
It happens when the react-native-colo-loco install ignites itself. But when I installed the react-native-colo-loco manually it works. May be it can a permission issue
Yeah, very strange! It would be nice to get more insight into what it's doing here.
@subodha Pinging you because just want to make sure if that still happens to you.
I've tried a couple things but sorry, I haven't been able to recreate it. I've tried different versions [yarn || npm, node, Cocoapods] to make sure it's not the package issue, but no dice. I've tried on 3 different machines, and asked my coworkers to try, but none of them reported the same issue as you're facing unfortunately.
There were another person having the similar issue and reported on our community Slack, but we couldn't figure out from the given info. In fact, we've switched fromyarn | npm
to npx
to run install-colo-loco
after debugging a bit.
It could be some sort of system permission issue too, but we're lack of info to track down for now. Let us know if you find anything interesting in your system so we could take another shot. Thanks.
Hi @leonskim Thank you for attending to this issue. I will investigate further and update you If I find something.
However I love ignite since it is really cool to use. I recomand any one to use this if they are starting react native app.
Thanks again for jumping in to this.
In my case, something breaks on RN Colo Loco.
npx ignite-cli doctor
System
platform darwin
arch x64
cpu 8 cores Intel(R) Core(TM) i7-4850HQ CPU @ 2.30GHz
directory WebstormProjects /Users/aymkin/WebstormProjects
JavaScript (and globally-installed packages)
node 16.13.0 /Users/aymkin/.nvm/versions/node/v16.13.0/bin/node
npm 8.1.0 /Users/aymkin/.nvm/versions/node/v16.13.0/bin/npm
corepack 0.10.0
expo-cli 5.0.1
expo-detox-cli 1.0.10
npm 8.1.0
yarn 1.22.15 /Users/aymkin/.yarn/bin/yarn
Ignite
ignite-cli 7.8.2 /Users/aymkin/.npm/_npx/e31027f3785124a8/node_modules/.bin/ignite
ignite src build /Users/aymkin/.npm/_npx/e31027f3785124a8/node_modules/ignite-cli/build
Android
java 11.0.12 /usr/bin/java
android home - /Users/aymkin/Library/Android/sdk
iOS
xcode 12.5.1
cocoapods 1.11.2 /usr/local/bin/pod
If I ignore it and go to the app directory - iOS builds just fine. Tha android fails to be built.
To ignite the app I did use the npx ignite-cli new easyms --bundle=co.easyms.my
, but if I do instead npx ignite-cli new easyms
that will work fine.
Same thing is happening to me. Was working a few days ago. Installed ignite cli again and this started happening
I've stubled on this bug today too. Looking at the process list I could figure out that the following process was hanging:
node /path/to/SomeApp/node_modules/.bin/install-colo-loco --defaults
Running it in the shell gave some insights:
Your git working tree is dirty.
Are you sure you want to continue? [y/N]
Sure enough, I was running the ignite CLI in an existing git folder (I wanted to add it as another sub-project of a mono-repo). Running it in a pristine folder did not result in any problems.
Is there any chance you guys had a similar setup, where you wanted to generate a new project in an existing git repo?
The question now is: is ignite supposed to run in a pristine folder? I see a dedicated initial commit is created, so there are at least some assumptions made on the git environment where you run the command. Or can this be fixed by getting around this prompt when installing colo-loco (there is a CLI flag to ignore the dirty repo check)?
Good catch @linusdm
A "side note" => This also happens for https://github.com/nirre7/ignite-diff-purge since it creates an ignite app in an existing git repo..
The mono repo setup is probably a fairly common normal scenario though.
Thanks @linusdm!
I've changed the directory to one without git and installation works now
FYI we will be removing RN Colo Loco by default from new projects with #1890.
:tada: This issue has been resolved in version 7.10.3 :tada:
The release is available on:
Your semantic-release bot :package::rocket:
What's going on? When I tried to create a new mobile app using ignite it keeps Installing React Native Colo Loco. Nothing proceed further. I tried using both NPX and YARN but the same issue occur. Any idea ?
Steps to reproduce
npx ignite-cli new MyApp
oryarn ignite-cli new MyApp --debug
Result