Giter Site home page Giter Site logo

Comments (7)

kevinejohn avatar kevinejohn commented on August 18, 2024

I ran into this issue and it seemed to be fixed after reloading node_modules

rm -rf node_modules
npm install

from bsv.

conorbros avatar conorbros commented on August 18, 2024

Was there a solution to this? I tried removing node_modules and it didn't work

from bsv.

032Amit avatar 032Amit commented on August 18, 2024

Hi @n1rna ,
Did you get any solution for this issue, i am also getting same issue. I tried to resolve it by updating bitcore-lib but no luck.

Thanks in advance.

from bsv.

Linux-Server avatar Linux-Server commented on August 18, 2024

Was there a solution to this? I tried removing node_modules and it didn't work

did u got the answer?

from bsv.

conorbros avatar conorbros commented on August 18, 2024

Was there a solution to this? I tried removing node_modules and it didn't work

did u got the answer?

I had to serve the development build to get it to work. I'm guessing it was an issue with whatever the react build scripts were doing to bundle everything in the production build.

from bsv.

ty-everett avatar ty-everett commented on August 18, 2024

I solved this by using react-scripts@^3.4.1 instead of react-scripts@^4.0.0 in my package.json.

You will need to delete package-lock.json and node_modules, then run npm i.

You lose hot module reloading, and some other nice things, but it didn't bother me at all in my case. I always thought HMR was still buggy.

The reason this worked is that Webpack 5 removes a lot of default things, including Buffer, which are needed by BN.js. React scripts 3.x still uses Webpack 4.

from bsv.

SubhajitSK avatar SubhajitSK commented on August 18, 2024

To resolve the issue, you can try updating the bn.js package by running the command npm install bn.js in your project directory. After updating, make sure to bundle the file again to incorporate the changes.

from bsv.

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.