Naveen Vignesh
Naveen Vignesh

Reputation: 1359

Getting npm bundle error react-native

NPM Bundle Error React Native

Unable to bundle js scripts for react-native. Metro bundler has suddenly started to fail in showing this error. I removed node_modules and ran npm i and still get this error.

Upvotes: 0

Views: 345

Answers (2)

Prabhu
Prabhu

Reputation: 1057

You need to delete both ios,android and node module folder. Run the following commands

> npm install //to get the node module folder

> react-native upgrade //to get android and ios folder

> react-native link // for linking the libraries

> react-native run ios/android

Upvotes: 2

Prabhu
Prabhu

Reputation: 1057

You can install npm i sha --save and run your project

Upvotes: 0

Related Questions