itinance / itinance/react-native-fs

installation issue

Open
#822 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
5k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I have installed react-native-fs using the following commands

npm install react-native-fs --save
react-native link react-native-fs

Added the following in podfile
pod 'RNFS', :path => '../node_modules/react-native-fs

after this installed the pod
pod install

Error occurred:

**Metro Bundler has encountered an error: While trying to resolve module `react-native-fs` from file `../../test.js`, the package `/node_modules/react-native-fs/package.json` was successfully found. However, this package itself specifies a `main` module field that could not be resolved (`/node_modules/react-native-fs/FS.common.js`. Indeed, none of these files exist:

* /node_modules/react-native-fs/FS.common.js(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)
* /node_modules/react-native-fs/FS.common.js/index(.native|.ios.js|.native.js|.js|.ios.json|.native.json|.json|.ios.ts|.native.ts|.ts|.ios.tsx|.native.tsx|.tsx)**

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.