Code Monkey home page Code Monkey logo

Comments (23)

AGIsmail avatar AGIsmail commented on July 20, 2024 5

@CoreyBovalina If you're using yarn then can you try this?

  1. Add this to package.json

    "resolutions": {
        "react-native-blob-util": "0.13.17"
    },
  1. Add [email protected] as a dependency
  2. Delete node_modules and run yarn install again

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024 2

I fixed sth that could cause it, so probably you got that fix now.
I'm glad it's now working for you

from react-native-blob-util.

CoreyBovalina avatar CoreyBovalina commented on July 20, 2024 2

"react-native-blob-util": "0.13.17"

in addition to doing having it as an added package as well?

when I tried doing this and it didn't fix it before: yarn add react-native-pdf react-native-blob-util fbjs

from react-native-blob-util.

davepaiva avatar davepaiva commented on July 20, 2024 1

are you using expo or a plain simple react-native project?

in my case this is not an expo project, it is a plain simple react-native project

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024 1
  • Delete node_modules folder (or make sure to delete rn-ftech-blob)
  • Install react-native-blob-util as a standard dependency for your project
    That's all, it should work. It sounds like your app is trying to find the library within of react-native-pdf. But there it won't be installed

from react-native-blob-util.

GuilhermeBergamoBR avatar GuilhermeBergamoBR commented on July 20, 2024

Same thing here, any progress?

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024

are you using expo or a plain simple react-native project?

from react-native-blob-util.

GuilhermeBergamoBR avatar GuilhermeBergamoBR commented on July 20, 2024

It is an expo based project, but I already ejected

from react-native-blob-util.

imranMnts avatar imranMnts commented on July 20, 2024

@RonRadtke Do we have any update?
I have the same issue and I'm using it in a React native CLI 0.63.4 project

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024

Sadly not. So far I am still failing in reproducing the problem on my devices / machines.
Using it myself with RN 63.3 in production, so I doubt it's the RN version...
It's also working fine on a new project for me

Could you please try to run a gradlew clean and also clean npm modules / reinstall them?

It sounds like something is off when trying to load the reacht-native-blob-util.

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024

I actually managed to get this error now once too.
But I could find any reason for it. Resetting the build caches and reinstalling the NPM modules solved it for me.

from react-native-blob-util.

arunim2405 avatar arunim2405 commented on July 20, 2024

@RonRadtke I am still facing this issue, reinstalling node_modules did not work for me, even tried npm start -- --reset-cache

from react-native-blob-util.

DonBranson avatar DonBranson commented on July 20, 2024

@RonRadtke I am still facing this issue, reinstalling node_modules did not work for me, even tried npm start -- --reset-cache

I was facing this problem with RN65, redux-persist-filesystem-storage 4.0.0, which uses react-native-blob-util 0.13.12. Manually removing 0.13.12 and yarn add react-native-blob-util installed 0.13.16, which fixed this problem for me.

from react-native-blob-util.

anujmpec avatar anujmpec commented on July 20, 2024

I am facing issue in it "react-native-blob-util": "^0.13.16",
inside "react-native-pdf": "^6.4.0",
"react-native": "0.63.4",

from react-native-blob-util.

AGIsmail avatar AGIsmail commented on July 20, 2024

This package is a dependency of redux-persist-filesystem-storage. Force upgrading the nested dependency to 0.13.17 allowed the app to start without errors.

Thank you!

Edit: This is based on the advice above that version 0.13.16 resolves the problem. I just went ahead with the latest version instead ;)

from react-native-blob-util.

CoreyBovalina avatar CoreyBovalina commented on July 20, 2024

I'm also having the same issue with react-native-pdf 6.4 since they switch to react-native-blob-util from rn-fetch-blob. Any way to fix this? I've added the latest react-native-blob-util and still broke.

from react-native-blob-util.

CoreyBovalina avatar CoreyBovalina commented on July 20, 2024

ok I tried with what you said and I get this:
error: Error: Unable to resolve module react-native-blob-util from /Users/Corey/Code/aaa/qqq/node_modules/react-native-pdf/index.js: react-native-blob-util could not be found within the project or in these directories: node_modules/react-native-pdf/node_modules node_modules ../node_modules

from react-native-blob-util.

aaron-dsilva-opsfuse avatar aaron-dsilva-opsfuse commented on July 20, 2024

Facing this issues on react native: "0.66.1"
react-native-blob-util: "0.13.17".
Not working on ios

from react-native-blob-util.

silverax avatar silverax commented on July 20, 2024

Got the same issue here, I'm trying to use react-native-pdf.
I tried adding direct dependencies to react-native-blob-util versions .16, .17 and .18 to no avail
image

from react-native-blob-util.

SzymonGlab avatar SzymonGlab commented on July 20, 2024

Same problem, updated react-native-pdf to newest version and according to their docs I installed react-native-blob-util - version 0.13.18.

Android works fine but on iOS I get this error mentioned in the question:
TypeError: null is not an object (evaluating 'ReactNativeBlobUtil.DocumentDir').

edit: Problem disappeared after updating RN to 0.67.1

from react-native-blob-util.

chadzxrex avatar chadzxrex commented on July 20, 2024

For those who still face this issue, make sure you have linked the library in Podfile, and run npx pod-install again after linking it.
pod 'react-native-blob-util', :path => '../node_modules/react-native-blob-util'

from react-native-blob-util.

yingwei1025 avatar yingwei1025 commented on July 20, 2024

Facing this same issues on
react native: "0.68.2"
react-native-pdf: "6.5.0",
react-native-blob-util: "0.13.18".
expo: "45.0.0"

how to make it work on expo

from react-native-blob-util.

RonRadtke avatar RonRadtke commented on July 20, 2024

Facing this same issues on react native: "0.68.2" react-native-pdf: "6.5.0", react-native-blob-util: "0.13.18". expo: "45.0.0"

how to make it work on expo

You would have to eject your project since we are using native components

from react-native-blob-util.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.