Skip to content
This repository was archived by the owner on Mar 16, 2019. It is now read-only.
This repository was archived by the owner on Mar 16, 2019. It is now read-only.

Could not automatically link package :TypeError: path must be a string or Buffer #435

Closed
@sujanbasnet

Description

@sujanbasnet

Hey !

I get this problem while trying to link the library, simple react-native link works but it suggests:

react-native-fetch-blob_ will not automatically add Android permissions after 0.9.4 please run the following command if you want to add default permissions :

RNFB_ANDROID_PERMISSIONS=true react-native link

And when I do RNFB_ANDROID_PERMISSIONS=true react-native link it give me the following error:

RNFetchBlob checking app version ..
RNFetchBlob detected app version => 0.45
Add Android permissions => false
react-native-fetch-blob link FAILED
Could not automatically link package :TypeError: path must be a string or Buffer
at TypeError (native)
at Object.fs.readFile (fs.js:304:11)
at Object. (/Users/Sujan/Desktop/React Native/RelaxationApp/node_modules/react-native-fetch-blob/scripts/prelink.js:29:8)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)

If I run the project with simple react-native link I get : undefined is not an object (evaluating 'RNFetchBlob.DocumentDir') when the project is run


Versions:

react-native-cli: 2.0.1
react-native: 0.45.1

RNFetchBlob: 0.10.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions