Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
138 votes
18 answers
211k views

Getting "Cannot read property 'pickAlgorithm' of null" error in react native

I get an error when running npm install. The error is: npm ERR! Cannot read property 'pickAlgorithm' of null npm ERR! A complete log of this run can be found in: npm ERR! npm-cache\_logs\2021-10-...
Kiana Kazeminejad's user avatar
110 votes
32 answers
255k views

npm install Error: rollbackFailedOptional

When I try npm install new packages it shows me this error: rollbackFailedOptional: verb npm-session 585aaecfe5f9a82 node --version 8.4.0 npm --version 5.3.0
Bipul Prasai's user avatar
  • 1,101
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
75 votes
13 answers
48k views

React Native: npm link local dependency, unable to resolve module

I am developing a button ui package for react native. I try to build an example project to test this button. The directory structure is as follows: my-button/ package.json index.js ...
Rick Liao's user avatar
  • 997
74 votes
25 answers
104k views

React-Native: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template

While executing npx react-native init MyProject I ran into the following error: ✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Failed to install CocoaPods dependencies ...
Vaiden's user avatar
  • 16k
65 votes
7 answers
302k views

Found 4 vulnerabilities on npm install

I am just getting started with react-native. On installing this package npm install --save react-native-validator-form https://github.com/NewOldMax/react-native-validator-form/issues/3 I was prompted ...
Dazzle's user avatar
  • 3,022
58 votes
23 answers
83k views

React native run-android do not updating modified code

I am using React native 0.52.0 and react-native-cli 2.0.1 on my Windows PC for android development. Despite all the changes i have made. When I run react-native run-android, it builds successfully but ...
Jonathan Utsu Undelikwo's user avatar
49 votes
7 answers
173k views

How do I create a React Native project using Yarn?

I am running the following commands in the DOS console on a Windows 7 (64-bit) machine. npm install -g yarn yarn add global react-native yarn add global react-native-cli react-native init sample ...
Prabhakaran Ramaswamy's user avatar
47 votes
12 answers
22k views

react native downloading javascript bundle 100% stuck

when I am trying to execute npm start it works fine, but when i try to run my application by expo the process goes till 100% and after that nothing happens. I am not getting what is exact issue over ...
Deepak's user avatar
  • 482
45 votes
4 answers
14k views

Cannot find module 'asap/raw'

i have started a new react-native project and after that i installed react-native-maps i can't run react-native run-android because the terminal displays the following error: module.js:550 throw ...
V.Cozzatella's user avatar
41 votes
11 answers
61k views

NPM stuck on idealTree: timing idealTree

Today i decided to start react native cli project. Everything works great since i want to add new lib of course using npm . So i ran npm install ... . And this command always stuck on Image idealTree:...
Hristo Ivanov's user avatar
41 votes
1 answer
22k views

Using npm modules in React Native projects

Is it possible to use npm modules with React Native projects directly, like one uses them within a React project by npm install <module-name>? Of course I mean modules that can be used with a ...
sçuçu's user avatar
  • 3,010
40 votes
5 answers
17k views

React Native: No propType for native prop RCTView.maxHeight

After upgrading to RN 0.30 I started seeing the error shown below even when building the simplest possible app: react-native init AwesomeProject react-native run-ios The strangest is that ...
Peter G.'s user avatar
  • 7,954
39 votes
7 answers
59k views

react-native, bundling failed

I am new to react-native and have found an error that makes absolutely no sense to me. I am trying to include a calendar library: https://github.com/wix/react-native-calendars I have included the ...
Alexander C's user avatar
35 votes
11 answers
119k views

ENOENT: no such file or directory when running npm install command

When I run npm install, I getting the following error, npm WARN tar ENOENT: no such file or directory, open 'D:\Live Project\insyte-mobile\insyte-mobile\node_modules.staging\core-js-c9f4d03d\library\...
Rakesh kushwaha's user avatar
34 votes
1 answer
45k views

what is the use of watchman for react native?

Can anybody describe clearly what the use of watchman available in npm library? ----Details I found--- npm - npm is the largest NodeJS package manager NodeJS - Server-side Javascript runtime ...
Lakshitha Kanchana's user avatar
34 votes
5 answers
17k views

Sharing a typescript library in a monorepo

I'm trying to setup a monorepo with 3 services sharing some library code. This is the current situation: repo: web pdf/ package.json reference to shared-ts using github url tsconfig.json ...
Corentin S.'s user avatar
  • 5,920
32 votes
16 answers
63k views

Failed to install expo package with error: yarnpkg exited with non-zero code: 1 yarnpkg exited with non-zero code: 1

Im currently trying to update my Expo SDK from 36.0.0 to atleast 37.0.0 with the command expo update however im getting the error: × Failed to install expo package with error: yarnpkg exited with ...
HCx3's user avatar
  • 451
32 votes
3 answers
29k views

Error: jest-haste-map: Haste module naming collision:

I have created a custom npm module (will use xxx instead of its name) and link it manually using npm install. I tried very hard and searched : [Workarounds] Packager unable to resolve module from /...
Firdous nath's user avatar
  • 1,567
31 votes
5 answers
60k views

Can't find variable: Buffer

I'm trying to use node modules in my react-native app, and I'm taking the ReactNativify approach here. I'm all set up now, and I got the crypto package to load in fine. However when I added in eth-...
arshbot's user avatar
  • 15k
30 votes
2 answers
69k views

How to fix npm audit fix issues?

┌───────────────┬──────────────────────────────────────────────────────────────┐ │ Low │ Prototype Pollution │ ├───────────────┼──────────────────────...
Isaac's user avatar
  • 12.7k
29 votes
5 answers
12k views

Main module field cannot be resolved after installing @apollo/client

I'm running into an error after installing Apollo when trying to run my React Native Expo app. I've tried deleting node-modules and re-installing, resetting cache, restarting computer, and still no ...
May's user avatar
  • 321
29 votes
8 answers
83k views

Proper mechanism to downgrade react-native

My situation is this : I had a working copy of a react-native project that was working well. Had it commited to my git repository. I decided to upgrade react-native to 0.26.3 and then 0.28 and ...
Sathyakumar Seshachalam's user avatar
28 votes
4 answers
42k views

react-native: switch from yarn to npm

Is there a step-by-step process to change a react-native project from using yarn as the package manager to using npm? All I can find after several days of searching are instructions to go from npm to ...
cbutler's user avatar
  • 1,405
27 votes
20 answers
74k views

Cannot uninstall webpack from react-script

I was trying to make a todo-app in react, which is new to me. But after once installed webpack, npm start doesnt working. It gives me: [email protected] start /home/hanna/Desktop/projects/my-todo-...
Hanna Kogut's user avatar
27 votes
5 answers
51k views

React Native: Unable to resolve module fs

Unable to resolve module fs from /...mypath I got this error when trying to import a node module into my react-native app. The module used 'fs' in this way: var fs = require('fs'); var list = JSON....
C.Lee's user avatar
  • 11.1k
26 votes
6 answers
43k views

Cannot read property 'string' of undefined | React.PropTypes | LayoutPropTypes.js

After deleting and reinstalling my node_modules folder, I'm facing an issue that I don't understand in LayoutPropTypes.js file. In node_modules/react-native/Libraries/StyleSheet/LayoutPropTypes.js ...
Nicolas Meienberger's user avatar
26 votes
7 answers
54k views

How to fix npm start "cannot determine native SDK version" error?

I'm trying to run my react native code from a github repository on ubuntu by using npm start and expo. When I run npm start I get the follow error: "Cannot determine which native SDK version your ...
Joppe De Jonghe's user avatar
26 votes
7 answers
34k views

React Native - __DEV__ is not defined

I have a [email protected] project. I have deleted the node_modules folder and after i have given the following commands: npm i react-native upgrade but I get this error: react-native.js:15 ...
SaroVin's user avatar
  • 1,693
25 votes
4 answers
107k views

Could not determine the dependencies of task ':app:mergeDebugAssets'

When I run react-native run-android on my project,I get an build error of gradle. I already uninstalled react-native-ftp with npm uninstall --save react-native-ftp, removed that dependency of ...
Leonardo Torres's user avatar
24 votes
4 answers
22k views

Where is Yarn storing offline packages?

I'm trying to install all the dependencies for this repo: https://github.com/react-community/react-navigation The problem is that Yarn seems to have stored offline packages somewhere other than the ...
rraallvv's user avatar
  • 2,915
19 votes
2 answers
70k views

How to uninstall react-native-cli on mac?

How can I uninstall react-native-cli on Mac?? I tried npm uninstall react-native-cli and it gives me below. npm WARN [email protected] requires a peer of eslint@^3.0.0 || ^4.0.0 || ^5.0.0 ...
Leonard's user avatar
  • 3,168
19 votes
2 answers
5k views

How do I read NPM dependency-conflict errors?

I'm trying to run npm install on a fairly outdated project and keep running into NPM dependency errors. I've ran into hundreds of errors like these before in various projects, but I have yet to find a ...
Eric Hasegawa's user avatar
17 votes
5 answers
12k views

xcode 'boost/config/user.hpp' file not found

I'm using Xcode 9, everything was fine. but after I upgrade my React-native version to 0.46, and upgrade my React to 16.0.0 alpha12. and re-run my project, Xcode gives me an error 'boost/config/user....
mengdi's user avatar
  • 363
17 votes
5 answers
20k views

How do I update npm packages in Expo

In my regular React Native projects, I run npm update {package-name} regularly to make sure my libraries are up-to-date. For example, I use a third party user authentication package and want to make ...
Sam's user avatar
  • 29.2k
17 votes
5 answers
34k views

Process 'command 'node'' finished with non-zero exit value 1

I tried to build jitsi meet based on react-native but it stucks in bundleReleaseJsAnd assets and then throw this error : Process 'command 'node'' finished with non-zero exit value 1
ali mardani's user avatar
17 votes
3 answers
3k views

Different package versions for Android and iOS

I am developing an app for both Android and iOS using React Native. One of the libraries I'm using is a bit problematic because the app only compiles correctly: ...on Android when using "react-...
Dev-iL's user avatar
  • 24k
16 votes
8 answers
29k views

Getting 'TypeError: interpolate is not a function' in React-Native

I am learning react-native currently. I'm on this Project that uses mainly - react-navgation,FlatList and react-native-magnus for UI. It takes in an Array of Objects, and uses FlatList to return a ...
Arushi Singh's user avatar
16 votes
2 answers
11k views

IOS: Invalid `Podfile` file: no implicit conversion of nil into String

I just started learning react-native. While trying to run npx pod-install I get: Scanning for pods... 1.11.3 > pod install Auto-linking React Native modules for target `AudioOnlyRN`: ...
Don Code's user avatar
  • 868
16 votes
4 answers
48k views

Failed to load configuration of my react native project

./gradlew clean command in the android directory has issues too. I've tried downgrading the npm version but no help. Any ideas? Below is the log I get when I run npx react-native run-android: error ...
Kiana Kazeminejad's user avatar
16 votes
7 answers
21k views

React Native: 'Component' cannot be used as a JSX component. Type '{}' is not assignable to type 'ReactNode'

I just started a new project but i'm getting the following error with various packages, for example React Native Reanimated and React Navigation Stack. This is my package.json. { "name": &...
Bruno de Moraes Rosa's user avatar
16 votes
6 answers
51k views

yarn install throw error request failed \"404 Not found"

I have react native project that I worked on my laptop. when I transfer the project to my pc and run yarn install (I installed the some modules using yarn and some using npm) I get An unexpected ...
Manspof's user avatar
  • 227
16 votes
4 answers
34k views

Unable to resolve module crypto in reactnative

I have posted this here have created react-native app using react-native init myapp added web3 in package.json npm install react-native run-ios but i am getting the error unable to resolve module ...
Trinu's user avatar
  • 1,741
16 votes
4 answers
10k views

React-Native Packager Failure: Duplicate module name

This happened seemingly randomly during development. When trying to run npm start or react-native run-ios, I get the following error: Failed to build DependencyGraph: @providesModule naming collision:...
chandlervdw's user avatar
  • 3,226
15 votes
7 answers
47k views

The legacy expo-cli does not support Node +17

I have installed expo-cli and set the env variable. It gives this error: The legacy expo-cli does not support Node +17. Migrate to the versioned Expo CLI (npx expo). Uncaught Error Error: EPERM: ...
Anosha Sheikh's user avatar
15 votes
2 answers
1k views

React native deploying on iOS device stuck on Running 1 of 1 custom shell script

I'm trying to run a React Native application on iOS device. It works fine on simulator, but while running on device it takes long 20-25 minutes to run. I get stuck on Running 1 of 1 custom shell ...
Abhinandan Sahgal's user avatar
14 votes
31 answers
90k views

Can't run "npm install expo-cli --global"

I am a newbie in all this stuff. Hope for your understanding. Let me clarify the issue: I am trying to start react native app through expo cli. So tried to start npm install expo-cli --global to ...
Jaloliddin Jaloliddinov's user avatar
14 votes
5 answers
29k views

Minified React error #321; visit https://reactjs.org/docs/error-decoder.html?invariant=321

I am trying to create few react components with few custom changes as package and publish into npm so that other projects can use them by importing package. My package is "sample-testing" available ...
HimaaS's user avatar
  • 423
13 votes
5 answers
26k views

React Native Expo - Node.js version 11.13.0 is no longer supported

I'm using Expo with React Native but when trying to create a new project I get the error: ERROR: Node.js version 11.13.0 is no longer supported. expo-cli supports following Node.js versions: * >=...
Hasen's user avatar
  • 12.2k
13 votes
4 answers
18k views

Can't run 'expo start' on a expo-react-native app, permission problem

Well, i see that already have many questions related to my problem on this site, but i also see that NONE of the solutions work for my specific case, because of that, i am opening that question, so it ...
Paulo Roberto Rosa's user avatar

1
2 3 4 5
34