Skip to main content

Questions tagged [react-native-cli]

The tag has no usage guidance.

react-native-cli
Filter by
Sorted by
Tagged with
346 votes
71 answers
316k views

Unable to load script.Make sure you are either running a Metro server or that your bundle 'index.android.bundle' is packaged correctly for release

react-native run-android command terminates by leaving a message in android simulator. The message is as follows: Unable to load script.Make sure you are either running a Metro server or that your ...
Belle Solutions's user avatar
180 votes
23 answers
191k views

How to resolve the error on 'react-native start'

I just installed node.js & cli installed node.js installed react-native-cli npm -g react-native-cli And created a 'new project'. react-native init new_project and inside that 'new_project' ...
Song Kevin's user avatar
  • 1,801
125 votes
20 answers
122k views

Unable to resolve module `@babel/runtime/helpers/interopRequireDefault`

When creating a new React Native project using the standard react-native init MyApp and running react-native run-ios for the first time, I'm seeing the following error : error: bundling failed: Error: ...
Chris Edgington's user avatar
86 votes
24 answers
134k views

Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile

I have updated node today and I'm getting this error: error: TypeError: Cannot read properties of undefined (reading 'transformFile') at Bundler.transformFile (/Users/.../node_modules/metro/src/...
Chaudhry Talha's user avatar
68 votes
0 answers
48k views

What is the difference between Expo CLI and React Native CLI? [duplicate]

React Native provides two way to create Project. First: npm install -g expo-cli Second: npm install -g react-native-cli so what is different between them and what should be used if we create ...
Jitendra Kumar's user avatar
64 votes
32 answers
134k views

'No apps connected. Sending "reload" to all React Native apps failed. Make sure your app is running in the simulator or on a phone connected via USB.'

My React Native application running on a physical device has some problems. The Metro bundler console gives a warning : warn No apps connected. Sending "reload" to all React Native apps ...
hakki's user avatar
  • 1
56 votes
7 answers
73k views

Run a React Native iOS release build from terminal

I am trying to run the release build directly from the terminal and I did not found an option to do that. From XCode what is required to do is: Product -> Scheme -> Edit Scheme (cmd + <), make ...
Sandro Machado's user avatar
40 votes
8 answers
25k views

Error: `fsevents` unavailable (this watcher can only be used on Darwin)

I'm cloning an existing react native app in my local environment, but every time I run react-native run-ios I get the following error: ** BUILD FAILED ** The following commands produced analyzer ...
Aly Dabbous's user avatar
27 votes
10 answers
30k views

react-native start giving Invalid regular expression invalid error

I followed following link to get started with react-native Getting started with react native I tried to create native app without expo so i as per documentation i followed following command npm ...
user avatar
25 votes
14 answers
82k views

How to Get SHA-1 key in React Native cli?

In React Native when I'm trying to get Google GPS API key in Google console, I have seen package name and SHA-1 key where to I get SHA-1 key in React Native How to get SHA-1 key in React Native cli? (...
Balaji's user avatar
  • 10.6k
23 votes
2 answers
25k views

How to run react-native run-ios with specific target

Is there a way to run a specific target with command react-native run-ios for Android I'm using following react-native run-android --variant=targetRelease
Dima Portenko's user avatar
15 votes
5 answers
6k views

Since upgrading to Xcode 10.2 I can no longer run react-native run-ios through the cli

I upgraded to Xcode 10.2 today, since upgrading I can't run react-native run-ios through the cli: react-native run-ios --simulator="iPhone X" Found Xcode workspace a.xcworkspace Could not find ...
smj2393's user avatar
  • 1,937
12 votes
6 answers
52k views

Deprecated Gradle features were used in this build, making it incompatible with Gradle 6

I try to get Apk in react-native however it doesn't give me anything. release file which is in Apk file is empty and after Gradlew bundle release is finished, it says Deprecated Gradle features ...
Kourosh Neyestani's user avatar
11 votes
6 answers
19k views

Why react-native-cli giving errors?

I recently installed react native cli globally. When i tried to start a project using react-native init projectname or npx react-native init projectname it started downloading packages and creating ...
aslamjm's user avatar
  • 121
10 votes
1 answer
10k views

How to upgrade core-js@3 in react-native cli?

I am trying to create new project with react-native cli, but when I create a new project I am receiving the following error message: react-native > create-react-class > fbjs > [email protected]: core-...
M.D Luffy's user avatar
  • 113
9 votes
1 answer
6k views

Error: Redefinition of module 'fmt' & 'folly'

Im trying build my react native app with cli and this error log appear. Xcode builds are solid and no error occurs. Here is part of log: 2 errors generated. While building module 'Foundation' imported ...
omkocer's user avatar
  • 313
7 votes
2 answers
4k views

How to watch react-native node_modules changes

When I run react-native start or npm start the packager starts and prompts to be Looking for JS files in /Users/map/repos/myrepo/ I've got Hot reloading enabled. When I change a file located within /...
maraujop's user avatar
  • 4,594
7 votes
1 answer
5k views

React-Native change default location of iOS and Android folder

According to the react-native cli documentation we can specify custom configuration based on each platform for RN cli. I want to change the default location of each platform folders so I added my ...
Hamid's user avatar
  • 2,038
6 votes
3 answers
11k views

React Native version check

I wanted to check the version of the react native I was using in my project when I used the command from my root folder : D:\Reactnative\Albums>npm view react-native version 0.56.0 The version ...
Mayank Raj's user avatar
5 votes
2 answers
17k views

Why does command 'react-native run-ios' build fail after upgrade to 0.63.3?

I just updated to RN v0.63.3. I was having issues with react-native run-ios on previous react-native version after changing the name of the app, and the project/schemes had different names, never got ...
Jim's user avatar
  • 2,242
5 votes
2 answers
429 views

SyntaxError: You can only use Class Properties when the 'classProperties' plugin is enabled

I am getting the following syntax error when I initialize an app using react-native init MyApp SyntaxError: /Users/MyAccount/RNProjects/app/node_modules/react-native/packager/react-packager/src/...
UtkarshPramodGupta's user avatar
5 votes
2 answers
13k views

how to upgrade react-native-cli?

Check current react native CLI version react-native -v react-native-cli: 1.0.0 react-native: 0.61.5 I use the following commands to upgrade global react-native-cli verison npm uninstall -g react-...
user2992029's user avatar
5 votes
0 answers
1k views

react-native -cli installation error

I'm trying to install react-native-cli by using the following command: C:\WINDOWS\System32>npm install -g react-native -cli and I'm getting the following errors, can someone help on this matter? ...
Dani's user avatar
  • 65
4 votes
2 answers
8k views

react native ios build fails with error - 'EXUpdates/EXUpdatesAppController.h' file not found

react native ios build fails with error 'EXUpdates/EXUpdatesAppController.h' file not found file used in AppDelegate.h #import <Foundation/Foundation.h> #import <EXUpdates/...
Mark Roger Cabadsan's user avatar
4 votes
1 answer
7k views

Where to find documentation on `react-native.config.js` file?

I have created new React Native project using its CLI. One of the generated files is react-native.config.js. I cannot find any documentation on it. It's not mentioned on the React Native website and I ...
ansavchenco's user avatar
4 votes
2 answers
14k views

What is purpose of latest doctor command in React Native

I was checking latest react native blog in which they introduced doctor command for react native. the only thing i can understand from there is do envoirnment stuff for you. ? But i don't understand ...
Muhammad Ashfaq's user avatar
4 votes
1 answer
9k views

react-native-video shows blank screen in my app without any error log

I am using react-native-cli and in my app, react-native-video doesn't work in my page. It shows blank space. I have already run react-native link command to link libraries and after I have run react-...
Rajnikant Kakadiya's user avatar
4 votes
1 answer
2k views

Listing packages linked with react-native link

I need to be able to see which packages I have linked with react-native link <dependency-name> to write some documentation for other devs on my team. I didn't previously document every package ...
AJ Fick's user avatar
  • 149
4 votes
2 answers
369 views

react-native init not working for react-native 0.57.1 on windows

I am using react-native-cli 2.0.1 and react-native 0.57.1 on windows 10. However, when I create a project with react-native init projectname and try to run it with react-native run-android I get ...
Joel Jacobsen's user avatar
4 votes
5 answers
14k views

EPERM: operation not permitted, chmod @react-native-community iOS

I am using React v16.8.6 and react-native v0.59.6. iOS. While typing react-native --version or anything prefix with react-native, it is showing the following error. internal/fs/utils.js:220 throw ...
Dhevendhiran M's user avatar
4 votes
2 answers
417 views

Native React - VS Studio Code - npm run android - Execution failed for task ':app:checkDebugAarMetadata'

I have been getting this error when trying to run npm android build on my native react project. I have gone through the entire android setup along with updating Environment variables. The emulator ...
Ben Tongue's user avatar
4 votes
0 answers
619 views

Error calling JSTimersExecution.callTimers in react-native

I am stuck with this error type in react-native. please find the attached screenshot. Please guide me to solve this error. I am using react-native-cli: 2.0.1 react-native: 0.44.0
chetan's user avatar
  • 1,023
4 votes
1 answer
366 views

React native run-ios ignoring simulator option

using the following commands my last used simulator iPhone 8 Plus (iOS 13.2) is used. Any thoughts on how to work out why the specified simulator is not launching? npx react-native run-ios --...
Edwar's user avatar
  • 55
3 votes
2 answers
6k views

`react-native init app` is not working in React-Native 0.56

React Native 0.56 I have already installed react-native-cli globally, and when I try to create a new project using react-native init myapp , I'm getting an error. This is the error I face. env:- ...
Aravind Sekar's user avatar
3 votes
2 answers
12k views

React Native Pod Error - [!] Invalid `Podfile` file: 767: unexpected token at ''. | Related Issue #448

I have already tried : #448 Environment System: OS: macOS 10.15 CPU: (4) x64 Intel(R) Core(TM) i5-4250U CPU @ 1.30GHz Memory: 30.63 MB / 4.00 GB Shell: 3.2.57 - /bin/sh Binaries: Node: 10.15.3 - /...
Abhishek Tomar's user avatar
3 votes
2 answers
3k views

react-native run-ios without build

How can I run the application without rebuilding the project (of course the app is installed on the relevant simulator from previous run) I run the application on iOS (for instance) like this: react-...
gran33's user avatar
  • 12.8k
3 votes
4 answers
5k views

react-native android project not found error

I am trying to create a react-native project using react-native cli. Command I used to create project npx react-native init test After this if I try to run this app by cd test & npx react-...
Mohammad tanvirul islam's user avatar
3 votes
2 answers
2k views

Why am I receiving a cannot read property `UIAppFonts of null` error when running react-native link?

I am trying to implement custom fonts in a react native application. I am using react native web and can see the custom fonts working on web but not in native. I am working on an Android app but the ...
mcc's user avatar
  • 121
3 votes
1 answer
3k views

Unmet peer dependency React Native CLI Init

I am trying to init a new react native project via the React Native CLI. I am on the most recent version (2.0.1) Then, I run the standard React Native Init command and the new project builds with all ...
Nicolas Le Gorrec's user avatar
3 votes
1 answer
926 views

Property 'passwordRules' not found on object of type 'UIView<RCTBackedTextInputViewProtocol> *'

Getting these errors on initializing a new react native app: Property 'passwordRules' not found on object of type 'UIView *' Use of undeclared identifier 'UITextInputPasswordRules' Steps to ...
Deepak's user avatar
  • 2,657
3 votes
2 answers
1k views

Yarn or npm? for installing dependencies in react-native

what should I use to install react-native dependencies? yarn or npm, in my case npm have some problems with some of dependencies. Sometimes i use npm to install these, but i am still confused to ...
Haseeb Javed's user avatar
3 votes
1 answer
1k views

React Native app fails to run after installing react-native-iap

I have an otherwise working React-Native app but need to include in-app purchases for it to be accepted on the app store. After a little Googling, it looks like react-native-iap is pretty much the ...
Ash West's user avatar
  • 119
3 votes
1 answer
1k views

Change console.log timestamp in react-native or nodejs apps

After recent updates the log format in the console on react-native and maybe node apps, has become like: This results after doing a simple console.log() call. In previous versions the timestamp ...
Odys's user avatar
  • 9,020
3 votes
0 answers
2k views

React Native error Task :app:checkDebugAarMetadata | Execution failed for task ':app:checkDebugAarMetadata'

[Whenever I enter the command npx react-native run-android, I get the following: Task :app:checkDebugAarMetadata FAILED Build failed I have never gotten my app to build and run successfully on my ...
Skull candy's user avatar
3 votes
1 answer
2k views

Run react-native cli in bazel build

I'm setting up a Bazel build for a React-Native Android project. Since I won't be using Android Studio and Gradle I need to call the react-native cli to create the RN bundle. I've tried several ...
Josh Nunez's user avatar
3 votes
0 answers
755 views

React Native 0.61 still requires me to link native modules

Recently I have upgraded to a version of React Native which is >=0.60. From the release notes I can now see Native modules are "autolinked". So there is no need to use react-native link every time ...
EDJ's user avatar
  • 1,001
3 votes
0 answers
628 views

React native iOS unable to autolink in yarn workspaces

I created a project with react native 0.60.4 in a monorepo (using yarn workspaces). The project has de following structure: project | |- node_modules |- packages |-react-native-app |...
Thiago Nascimento's user avatar
3 votes
0 answers
2k views

Cannot launch or install app on ios Simulator , even after build and bundle success

I have been using react-native-cli to create and test app on linux, But recently i switched to mac with High Sierra. I installed Xcode properly and its command line. and every thing as required to run ...
Shubham Pratik's user avatar
3 votes
1 answer
2k views

Link non-font assets using rnpm

There are plenty of tutorials on including font assets using rnpm. These are the steps: Put fonts in, say, ./assets/fonts Add the following snippet to package.json: "rnpm": { "assets": [ "./...
Andrii Chernenko's user avatar
3 votes
1 answer
1k views

React Native naming collision error when running packager, caused by "lodash" and "yeoman-generator"

Description In my project I am using "react-native": "0.36.0" and among the dependencies: "lodash": "^4.15.0" "yeoman-generator": "^0.24.1" When using versions higher than "^3.10.1" for "lodash" ...
Andrei Pitea's user avatar

1
2 3 4 5 6