question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

So hard to just create and start native application

See original GitHub issue

Description

I have so much problems with just creating a SIMPLE application. I tried to use React Native/React (I know, this is create-app repo, btw I don’t want to create multiple topics in different repos, so…) on Windows 10 (why not) and Ubuntu 16.04.

Expected Behavior

I just installed node.js and then installed react-native’s packages to start develop apps on React. On linux I got so much troubles that I’m just confused.

Observed Behavior

Well, when I tried to use it on Windows I just tried to use npm start and it always stuck on Starting Packager. I found some ways to solve it, but they were for Linux/macOS. So, when I tried to use it on Ubuntu I got even more errors. First of all, npm start just didn’t want to execute with messages that I have to use sudo sysctl -w fs.inotify.max_user_instances=1024 and something else (I forgot, sorry). Okay, when I did that I had to, I got endless “Starting Packager” like on Windows. Tried to find a solution for this problem and as someone mentioned here, I need to sudo sysctl -w fs.inotify.max_user_watches=10000 Well, after that I got my first problem with sudo sysctl -w fs.inotify.max_user_instances=1024. Just like a loop .0. Okay, then I installed watchman (0.4.7 because of 0.4.9 gave me an error after ./configure like I dont have this file). These problems with sysctl are ended, but I GOT LOOPED “Starting Packager”. I just want to ask you - why? Why it is so hard to use React/Native on the fresh OS without any extra programs which could mess it up inside of it? I think that logs are not needed, because the problem did not occur only with me alone and not so rarely as we would like. You can just find it by similar commands in google if you say ‘Endless Starting Packager React Native Linux’ or ‘Unable to start server React Native’.

Environment

Please run these commands in the project folder and fill in their results:

  • npm ls react-native-scripts: react-native-scripts@1.14.0
  • npm ls react-native: react-native@0.56.0
  • npm ls expo: expo@28.0.0
  • node -v: v10.6.0 (also, I checked out LTS version, but I had same problems)
  • npm -v: 6.1.0
  • yarn --version: not installed
  • watchman version: 4.7.0

Also specify:

  1. Operating system: Ubuntu 16.04 LTS, Linux x64
  2. Phone/emulator/simulator & version: Android 8.0

Note

After that I don’t even know if I want to continue it.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7

github_iconTop GitHub Comments

1reaction
arsensaruhanyan2611commented, Jul 18, 2018

Uhm, I’m testing different platforms for now (like Xamarin, React Native and Flutter). I like Flutter because it’s easier and faster in development (especially compared to Android-native development), but it’s really has no support for so many things, thus I wanted to use React. Btw, I’ll try your solution, thanks!

0reactions
Jturpijncommented, Jul 24, 2018

I hope everything worked out! Could you close this issue? You can create a new one when running into a new problem.

Read more comments on GitHub >

github_iconTop Results From Across the Web

What Is the Best Way to Create A Native App in 2021 (Cross ...
Cross platform app development frameworks include React Native, Vue Native, NativeScript and Flutter, most of which use Javascript to build apps that run...
Read more >
How To Make An App – (2021) Create An App in 10 Steps
Learn how to make an app from app idea to launching your app into the App Store. This 10 step guide is filled...
Read more >
FAQ: Should You Build a Native App or Mobile Web?
Native UIs can take advantage of features that are much harder to access via web apps. These include notification services, location services, ...
Read more >
How to Create an App - 7 Steps to Make an app (2022)
1. Get your app idea on paper. The first stage of your app building is to understand what your app is aiming to...
Read more >
How to Create An App With No Programming Experience
The fastest and most affordable way to build a mobile app is to convert your existing site into native mobile apps. With MobiLoud...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found