Comments (7)
I ran into this issue and it seemed to be fixed after reloading node_modules
rm -rf node_modules
npm install
from bsv.
Was there a solution to this? I tried removing node_modules and it didn't work
from bsv.
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.
Was there a solution to this? I tried removing node_modules and it didn't work
did u got the answer?
from bsv.
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.
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.
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)
- Can't access bsvjs.deps.Buffer HOT 1
- please add paymail query api HOT 3
- [email protected] Block.toBuffer().toString('hex') not equal to rpc getblock(blockhash, 0) HOT 6
- [email protected] tx.id() not equal to rpc getblock(blockhash, 1) tx id HOT 9
- bsv 3.0 epic checklist HOT 1
- How can I create a transaction with multiple inputs and outputs? HOT 1
- Error in documentation: bsv-private-key.html HOT 1
- version compatible HOT 3
- bsv legacy failing on parse hex script
- Global export of bsv undefined since 2.0.10
- 'testnet' address generation bug? HOT 3
- Increase Block.MAX_BLOCK_SIZE
- bsv version 2 isFullySigned HOT 1
- Tx.fromHex is not equal toHex. See example.
- How to create and send transaction using bsv?
- @Limpisey168
- #1
- #1
- huge memory usage when building a transaction in browser env HOT 1
- BSV Library Version | HD Keys Confussion HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bsv.