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

running npx rnn link reports an error #7912

Closed
shellyaoo opened this issue Sep 12, 2024 · 2 comments
Closed

running npx rnn link reports an error #7912

shellyaoo opened this issue Sep 12, 2024 · 2 comments

Comments

@shellyaoo
Copy link

The React Native Navigation version is 7.37.0
The node version is 20.13.0
The React version is 18.3.1
React Native version is 0.75.2
I want to create a tab bar using React Native Navigation
However, when I installed it, running NPX RNN link encountered an error
The error is as follows:
exports.rootGradle = mainApplicationJava.replace(/android/app/.*.java/, "android/build.gradle");;
^
TypeError: Cannot read properties of undefined (reading 'replace')

I looked at the path.js file in the node_modules folder, and found that mainApplication Java obtained the MainApplication. java file. However, the files in my Android are MainApplication. kt and MainActivity. kt files, and there are no files related to the. java suffix. Therefore, the mainApplication Java variable obtained is undefined,
I don't understand Android native. What should I do to use React Native Navigation in my project? Thank you
1726153500122
image

Copy link

We use the issue tracker exclusively for bug reports and feature requests.
This issue appears to be a general usage or support question.
Instead, please ask a question on Stack Overflow with the wix-react-native-navigation tag or on Discord.

@zabojad
Copy link
Contributor

zabojad commented Sep 23, 2024

Just having the same issue right now. Did you find a way out @shellyaoo ?

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

No branches or pull requests

2 participants