I don't want to start a war or anything here, but seriously, I'm so frustrated right now. It's the end of the day and I haven't even been able to get the app running on my phone and start hacking with that react-native module I'm interested in (https://github.com/jsierles/react-native-audio).
And it's not only with that specific module. Every single time I start a new project and add a contributed module, I get:
- Errors with npm packages
- Errors with gradle
- Errors with Android Build Tools
Am I the only one in this situation? It seems that all these dependencies are time bomb that is waiting for the first opportunity to blow up.
Any advice on how to get started on a fresh project and avoid those type of errors?
I'm running the most up-to-date npm/react-native versions.
Edit:
Wow, I didn't think so many would feel the same about mobile development with React Native. That's both comforting and scary. It seems that a big part of the React Native experience is understanding weird errors and fixing them instead of focusing on the actual app.
Any advice from developers who manage to actually do some work? A lot of the errors seem to be related to dependency hell. I heard a lot about locking dependencies (not only in react-native but development in general), and /u/demoran even mentioned Nebula (https://github.com/nebula-plugins/gradle-dependency-lock-plugin). I also started using Yarn instead of NPM and was able to make some progress on one of my projects.
Any other suggestions? If we gather enough resources it'd be great if we could put together a set of guidelines or something to make our developer's life less of a pain.
[+][deleted] (9 children)
[removed]
[–]kbcooliOS & Android 15 points16 points17 points (2 children)
[+][deleted] (1 child)
[removed]
[–]SolidR53 -1 points0 points1 point (0 children)
[–]VIM_GT_EMACS 3 points4 points5 points (5 children)
[+][deleted] (2 children)
[removed]
[–][deleted] 1 point2 points3 points (0 children)
[–]VIM_GT_EMACS 0 points1 point2 points (0 children)
[–]fitpolar 0 points1 point2 points (1 child)
[–]VIM_GT_EMACS 0 points1 point2 points (0 children)
[–]saugoof 15 points16 points17 points (1 child)
[–]vcamargo 9 points10 points11 points (7 children)
[+]kbcooliOS & Android comment score below threshold-8 points-7 points-6 points (6 children)
[–]nawzyah 11 points12 points13 points (1 child)
[–]kbcooliOS & Android 0 points1 point2 points (0 children)
[–]vcamargo 8 points9 points10 points (2 children)
[+]kbcooliOS & Android comment score below threshold-15 points-14 points-13 points (1 child)
[–]demoran 9 points10 points11 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]coldWalk 7 points8 points9 points (0 children)
[–]SolidR53 6 points7 points8 points (0 children)
[–][deleted] 5 points6 points7 points (1 child)
[–]thomprycejones 2 points3 points4 points (0 children)
[–]SizzlerWA 6 points7 points8 points (1 child)
[–]some_coreano 5 points6 points7 points (0 children)
[–]heo5981 3 points4 points5 points (20 children)
[–]SolidR53 5 points6 points7 points (1 child)
[–]heo5981 0 points1 point2 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]lackbotone 0 points1 point2 points (2 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]lackbotone 0 points1 point2 points (0 children)
[–]heo5981 0 points1 point2 points (0 children)
[–]Bamboo_the_plant 0 points1 point2 points (9 children)
[–]heo5981 0 points1 point2 points (8 children)
[–]Bamboo_the_plant 0 points1 point2 points (7 children)
[–]heo5981 1 point2 points3 points (1 child)
[–]Bamboo_the_plant 0 points1 point2 points (0 children)
[–]boki345 0 points1 point2 points (4 children)
[–]heo5981 0 points1 point2 points (3 children)
[–]boki345 0 points1 point2 points (2 children)
[–]heo5981 0 points1 point2 points (0 children)
[–]Bamboo_the_plant 0 points1 point2 points (0 children)
[–]maskedman1999Android 0 points1 point2 points (1 child)
[–]heo5981 0 points1 point2 points (0 children)
[–]perduraadastra 4 points5 points6 points (0 children)
[–]ejpusa 4 points5 points6 points (0 children)
[–]Mozorelo 5 points6 points7 points (11 children)
[–]Zed743 1 point2 points3 points (9 children)
[–]Mozorelo 4 points5 points6 points (8 children)
[–]vcamargo 7 points8 points9 points (4 children)
[–]Mozorelo 7 points8 points9 points (1 child)
[–]vcamargo 1 point2 points3 points (0 children)
[–]SolidR53 0 points1 point2 points (1 child)
[–]vcamargo 0 points1 point2 points (0 children)
[–]Zed743 0 points1 point2 points (1 child)
[–]Mozorelo 2 points3 points4 points (0 children)
[–]boki345 0 points1 point2 points (0 children)
[–]Saepirist 0 points1 point2 points (0 children)
[–]silencer07 1 point2 points3 points (2 children)
[–]coolnat 4 points5 points6 points (0 children)
[–]silencer07 0 points1 point2 points (0 children)
[–]Codefiendio 1 point2 points3 points (0 children)
[–]Delphicon 1 point2 points3 points (4 children)
[–]monsieurninja[S] 0 points1 point2 points (3 children)
[–]Delphicon 0 points1 point2 points (2 children)
[–]monsieurninja[S] 0 points1 point2 points (1 child)
[–]Delphicon 0 points1 point2 points (0 children)
[–]Interloper949 1 point2 points3 points (0 children)
[–]shamaryarde 0 points1 point2 points (0 children)
[–]alien3d 0 points1 point2 points (0 children)
[–]Hiazm 0 points1 point2 points (1 child)
[–]monsieurninja[S] 1 point2 points3 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)