rn-fetch-blob icon indicating copy to clipboard operation
rn-fetch-blob copied to clipboard

rn-fetch-blob has been ignored because it contains invalid configuration. "dependency.hooks"

Open john-mokaied opened this issue 2 years ago • 22 comments

Package rn-fetch-blob has been ignored because it contains invalid configuration. Reason: "dependency.hooks" is not allowed

React Native 0.69.1

john-mokaied avatar Jul 05 '22 09:07 john-mokaied

same!

hieuminh1810 avatar Jul 05 '22 12:07 hieuminh1810

same!

showtan001 avatar Jul 06 '22 09:07 showtan001

same

YanislavSpaceIQ avatar Jul 06 '22 15:07 YanislavSpaceIQ

Apparently, a workaround for this problem is deleting the node_modules/rn-fetch-blob/react-native.config.js file.

gustavomts avatar Jul 06 '22 20:07 gustavomts

and use patch-package for commit patch

fonov avatar Jul 07 '22 11:07 fonov

Same.

Due to https://github.com/react-native-community/cli/pull/1537 some things in react-native.config.js have been deprecated and removed, thus failing autolinking schema validation (for example dependency.hooks).

Steps to Reproduce

Create a vanilla RN project with latest 0.69.1 with npx react-native init Example. Add this package. Observe it not being autolinked.

alexanderoskin avatar Jul 07 '22 14:07 alexanderoskin

same

edritech93 avatar Jul 18 '22 03:07 edritech93

Same!

Nesh108 avatar Jul 19 '22 08:07 Nesh108

Same too!

ngocptmio avatar Jul 20 '22 10:07 ngocptmio

This is pretty critical since it makes this impossible to use on RN 0.69.1 without messing around with node_modules.

micahlt avatar Jul 20 '22 20:07 micahlt

I'm currently having issues as well. RN v0.69.4

jawknees avatar Aug 10 '22 00:08 jawknees

any solution ?

lakshan28 avatar Aug 10 '22 05:08 lakshan28

I fix it by removing "node_modules/rn-fetch-blob/react-native.config.js" file because it's removed from react native 0.69. Thanks to @gustavomts

iamraouf avatar Aug 12 '22 15:08 iamraouf

A PR fix for this has been made and merged in here, and published to NPM.

It should be in the next version that comes out, but for now to fix this you can do:

yarn add [email protected]

jvgeee avatar Aug 18 '22 02:08 jvgeee

@jvgeee thank you ! Do you know more or less when this 0.13 version should land please ?

zedtux avatar Nov 10 '22 13:11 zedtux

@jvgeee when installing this beta version getting application crash whenever sending a file on the server through fetch or Axios

ZeeshanAhmadKhalil avatar Nov 12 '22 04:11 ZeeshanAhmadKhalil

A PR fix for this has been made and merged in here, and published to NPM.

It should be in the next version that comes out, but for now to fix this you can do:

yarn add [email protected]

It causes an App crash or Network failure during a POST request. I mess up with it for 2 days and found that I am using this beta that is provided here. Really tired

faisalamin9696 avatar Nov 22 '22 08:11 faisalamin9696

Any idea of when 0.13 will be release?

am2619015 avatar Dec 03 '22 05:12 am2619015

its worked yarn add [email protected]

VinothEI avatar Jan 11 '23 04:01 VinothEI

so what is the better solution?? upgrade to 0.13.0-beta.2 or remove react-native.config.js?

hotaryuzaki avatar Jan 18 '23 08:01 hotaryuzaki

Yes, Its removed that log.

VinothEI avatar Jan 18 '23 10:01 VinothEI

Feel free to move to my fork: https://www.npmjs.com/package/react-native-blob-util Since this lib here is kind of dead for years....

RonRadtke avatar Mar 17 '23 20:03 RonRadtke