maxkomarychev / react-native-ultimate-config

Config that works
MIT License
262 stars 31 forks source link

Error while running in AppCenter #48

Closed coffteam2020 closed 3 years ago

coffteam2020 commented 3 years ago

I think it could not find any yaml file in root, instead of android folder. How can I resolve this? @maxkomarychev @sdenaci @irohitb, thanks for incredible lib, hope you give me a solution to fix this

maxkomarychev commented 3 years ago

@coffteam2020 I'd need more context to help wit this. Can you pease reopen this issue using "bug" template and answer all relevant questions?

From what I see here I can only suspect you have not called yarn rnuc ...yaml before trying to compile the app.

coffteam2020 commented 3 years ago

We use env files to use multiple flavors. Not yaml file. For rnuc, we use: npm run rnuc ../env. @maxkomarychev

maxkomarychev commented 3 years ago
  1. is this reproducible locally?
  2. what is the version of library are you using?
  3. are you using flavor-based integration or running rnuc manually before the build?
  4. what is the command that appcenter perform? please provide full details of how this is set up there: scripts, screenshots etc.

I cant help if you dont share all possible details or provide a reproducible project.

The fact it happens only on CI hints there is something happening differently on CI and your computer.

Thanks.

isilher commented 3 years ago

Personally when I had this it was because one of the steps in AppCenter would clean our working directory. I added the rnuc command to the end of our appcenter-post-clone.sh file to ensure the config files are set before building.

maxkomarychev commented 3 years ago

@isilher would you mind opening a pull request and adding this know-how to the cookbook?

isilher commented 3 years ago

Sure! Expect one in the coming week.

maxkomarychev commented 3 years ago

hey @coffteam2020

can you please try to apply a fix suggested by @isilher in troubleshooting guide ?