-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Text must not be null or empty #25822
Comments
From here Change |
@NestedLooper , this would not work for me because the line of code that my error is complaining about in the same exact file is a different one. In terms of
|
@Joycewu31400 , did you ever find a solution to this? I am still unable to resolve it in our Jenkins build even though I have resolved every issue keeping it from building locally. |
I still don't solve this problem |
What @NestedLooper said worked for me... Is this script maybe getting invoked from a different location than it used to? |
Looks like this commit might have broken it: react-native-community/cli@023360b#diff-375026a0607eb034a6fc70cca7d74689L185 Instead of running I'm not sure how more people aren't experiencing this... 🤔 |
Isn't the other issue here that this command assumes that folder where your My |
@donholly so we have a PR that has broken something that generates Do you or anyone else know why this could be? @NestedLooper, I tried your solution anyway and it did not work. I got this error:
|
@jpaas yeah that's why I think it used to be @ldco2016 are you running the exact same versions on your machine and Jenkins? I've literally been changing this line from:
to:
(obviously this is not a good solution at all, but it's gotten my Android build working again) I don't have much time to dig further on this unfortunately. Would like to know why that line was changed to assume it knows where your You are correct that this will not work in my CI environment, though... so I will probably be spending more time on this again in the near future :( |
@donholly , the exact same version of what exactly? I tried doing this:
to:
and I got this error |
I can confirm that the
|
Nice @jpaas - I suppose a @ldco2016 feels like you might have a different issue than we're seeing here maybe? Did you maybe move to the |
@donholly , when I run
Should I run |
I would start there, yeah! |
Hi, there is some problem with monorepo setup. I tried to create new monorepo project as
i also followed these steps about autolinking settings.gradle
app/build.gradle
I've created testing repository where you can reproduce this problem.
Point 3 can be solved by:
UPDATE: |
I ran
|
You seem to have a number of different issues there. Are you sure your |
This is what my
When I am not trying the solution by @NestedLooper , everything works when I run But if you look carefully, its not complaining about whats in my
|
Sorry didn't read carefully enough there... I'm not sure about how to resolve this for unfortunately... seems like it can't find Mine is here: |
@donholly , well the
Our DevOps guy has yet to report that text must not be null or empty error since making this change. To be clear, I don't think that was the problem, but it was an incorrect |
Same issue, and #25822 (comment) fixed for But when I try to get a release with
The solution for me was:
and create a cli.js in the root folder of my monorepo:
|
I have resolved all the other issues I have, but when I deploy the project to Azure DevOps, our DevOps person continues to get this error:
It continues to reference that |
This is what I did (
And via a "postinstall" script (
|
@ldco2016 I did exactly what @th317erd did here. I assume if you put that in place, your CI/CD environment should work - have you tried that? I have made a note to come back to this at some point this week as I start wrapping up an app I'm working on for deployment. If I figure anything new out I'll be sure to mention it here! |
have same issue for my monorepo and can confirm changing |
i also have this problem. my project was working fine but then for some reason i had to downgrade my node version from 12.10.0 to 10 then i started having this issue EDIT: Fixed it again by installing node version 12.10.0 |
@Federkun In my environment, both |
Hey there, it looks like there has been no activity on this issue recently. Has the issue been fixed, or does it still require the community's attention? This issue may be closed if no further activity occurs. You may also label this issue as a "Discussion" or add it to the "Backlog" and I will leave it open. Thank you for your contributions. |
Closing this issue after a prolonged period of inactivity. If this issue is still present in the latest release, please feel free to create a new issue with up-to-date information. |
React Native version:
0.60.4
This is my project structure,
Project
-----mobile
-----node-module
------package.json
-----------android
-----------ios
And i config my setting.gradle, app/build.gradl as the url "https://github.com/react-native-community/cli/blob/master/docs/autolinking.md"
when i use @react-native-community/cli 2.0.2 , i got error "Cannot get property 'packageName' on null object"
if i use 2.8.0 , i got the error "Text must not be null or empty"
The text was updated successfully, but these errors were encountered: