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

Issue with AppCenter not seeing React Native apps in subfolders #928

Closed
dluc opened this issue Aug 21, 2019 · 14 comments
Closed

Issue with AppCenter not seeing React Native apps in subfolders #928

dluc opened this issue Aug 21, 2019 · 14 comments
Assignees
Labels
build Related to App Center's Build service feature request New feature request

Comments

@dluc
Copy link

dluc commented Aug 21, 2019

I have a React Native app (not using Expo) in my DevOps repository, and the src code is not in the root folder, e.g: /frontend/mobileapp/reactnative is the root folder of the RN app, so package.json is in /frontend/mobileapp/reactnative/package.json.

Given this setup, when I try to configure a build, AppCenter shows an error:

image

if I move the same code to the root (so package.json is in /reactnativeapp/package.json) instead everything works fine:

image

Looks like I need to restructure my repository just for AppCenter, which is far from ideal.

Is this a known limitation or a bug?

Any workaround to setup the build manually so I can specify where these files are?

@dluc dluc added the feature request New feature request label Aug 21, 2019
@nilofer nilofer added the build Related to App Center's Build service label Aug 21, 2019
@nilofer nilofer self-assigned this Aug 21, 2019
@nilofer
Copy link

nilofer commented Aug 21, 2019

Hi @dluc, we look for the package.json within the first 4 layers of your repo. No way to set the path manually today. This may be a similar feature request to #278.

@dluc
Copy link
Author

dluc commented Aug 21, 2019

hi @nrajpurkar how many layers is /frontend/mobileapp/reactnative/package.json relatively to the root of the repo? isn't it 3 ?

@dennispan
Copy link

@dluc Do you mind reaching out to support from App Center portal? You can ask support team to assign to me. I'd like to take a closer look at your app, which hopefully can help

@b-barry
Copy link

b-barry commented Oct 21, 2019

@dluc Do you find any workaround? I am facing the same issue.

@dennispan
Copy link

@b-barry It ended up being that certain files the repository analysis was looking for is deep in the repository, for example, gradlew. If you can reach out to support, we can figure out if your case is something similar.

@b-barry
Copy link

b-barry commented Oct 23, 2019

@dennispan Could you give the support address?

@dennispan
Copy link

@GoMino
Copy link

GoMino commented Jan 17, 2020

This is really an annoying issue!

@bitops
Copy link

bitops commented Apr 1, 2020

Agree that this is a major limitation on the part of App Center Build. It should be a well-supported feature to build apps that are not stored in the root of the repository.

@rrnara
Copy link

rrnara commented Jul 8, 2020

I have a scenario where the repo has the nodejs server, web-client and react-native code are in single repo. Without specifying the subfolders creating a build environment is impossible. I currently have a separate repo where I duplicate the react-native code to get the build working. It would be nice if path to react-native code can be specified

@ghost ghost added the Stale label Jun 30, 2021
@ghost
Copy link

ghost commented Jun 30, 2021

This issue has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs within 15 days of this comment.

@ghost
Copy link

ghost commented Jul 15, 2021

This issue will now be closed because it hasn't had any activity for 15 days after stale. Please feel free to open a new issue if you still have a question/issue or suggestion.

@ghost ghost closed this as completed Jul 15, 2021
@JulianBissekkou
Copy link

@rrnara How did you solve the issue?

@ghost ghost removed the Stale label Sep 20, 2021
@rrnara
Copy link

rrnara commented Sep 23, 2021

@rrnara How did you solve the issue?

I created a separate repo to which the subfolder gets pushed on commit using git subtree split command. And that mobile only repo is what is used for building apps in appcenter

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Related to App Center's Build service feature request New feature request
Projects
None yet
Development

No branches or pull requests

8 participants