Replies: 1 comment 4 replies
-
Since this I seems more like a question, than a bug in ethers, I’m converting it to a discussion. :) |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Ethers Version
5.6.9
Search Terms
network, noNetwork, NETWORK_ERROR
Describe the Problem
Hello, I'm using Electron React Boilerplate to build an application which uses ethers.js. I have come across a strange problem:
JsonRpcProvider works perfectly fine in development, but when I build & package the application, every time a JsonRpcProvider is instantiated the following error pops up:
This happens whenever I instantiate a JsonRpcProvider on the main (node.js) side (Electron has 2 modules, main and renderer, main is basically node.js and renderer is a browser). What is strange is that JsonRpcProvider works perfectly fine in the browser (renderer part). I checked the URLs and they are exactly the same for the working and broken version.
Does anyone know how to solve this?
Code Snippet
No response
Contract ABI
No response
Errors
Environment
Ethereum (mainnet/ropsten/rinkeby/goerli), node.js (v12 or newer), Browser (Chrome, Safari, etc)
Environment (Other)
No response
Beta Was this translation helpful? Give feedback.
All reactions