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
Horrible experience starting a project #44422
Comments
|
|
This has already been discussed a number of times: Solution: You need to increase the amount of memory that Gradle can use. Also have you considered using Expo instead? |
Changing to Cheers mate, I was about to tear my hair out. This was actually a more frustrating start than setting up a flutter dev environment on Arch. Impressive. |
Gradle memory was not the problem. Which means this was not discussed a number of times, but since it is closed, there is no point in keep discussing. I am glad i was able to help you @mrkesu
|
worked for me too, thanks! |
Description
I tried to start a new project, on a clean computer and i gave up.
There is a gradle problem with the latest react native version in the date i am writing this, which the tutorial from the official website does not support and it is impossible to run the project on it, i had to waste 4 hours around the internet searching for how to fix even tho i did not change a single line of code and my enviroment according to react-native doctor was 100% (gradle/gradle#27844 (comment))
Solution:
distributionUrl=https://services.gradle.org/distributions/gradle-8.5-bin.zip
I cleaned all my vscode configuration, installed all official plugins according to package.json (babel, react-native, eslint, react native esling, typescript, typescript eslint, eslint, prettier)
Added a settings.json and also configured my global and workspace setting according to multiple configurations found around the git issues and the formatting of the files simply do not work.
Whereas the formatting works perfect with reactjs, nextjs, nestjs, flutter, java, typescript and javascript files on any other project besides the react native.
It was a pain just to run the hello world project on the emulator and when it finally runs, i can't code because of configuration files unless i disable all the lints. It is extremelly frustrating (not even going to talk about the java configuration needed which i already knew it was going to be a pain, and honestly, nothing has improved from 2.5 years ago when i last worked with react native detecting the java and jdk configuration).
So, my suggestion is to improve, not sure how, the Enviroment Setup section (https://reactnative.dev/docs/environment-setup) so it helps people understand all the base configuration needed to properly run everything the starting project has to offer.
Also, make the project configuration of the starting project a little smarter on the setup, so it warn developers on missing extensions or configuration (flutter does an awesome job on this aspect, just add a flutter project on a brand new computer with vscode, vscode will give you tons of modals to install everything you need).
Some good examples which has never failed me, neither on windows or on macbooks.
https://docs.flutter.dev/get-started/install/windows/mobile
https://spring.io/quickstart
https://docs.nestjs.com/
https://nextjs.org/docs/getting-started/installation
Steps to reproduce
React Native Version
0.74.0
Affected Platforms
Runtime - Android, Runtime - iOS
Output of
npx react-native info
Stacktrace or Logs
Reproducer
https://github.com/facebook/react-native
Screenshots and Videos
No response
The text was updated successfully, but these errors were encountered: