Running the application from a bundled file, I'm getting Error: could not detect network (event="noNetwork", code=NETWORK_ERROR, version=providers/5.0.10)
.
This happens when I try to run the application in a virtual machine.
Info:
Ubuntu 20.04 lts
Node version: 14.17.5
Npm version: 7.42.0
/root/.nvm/versions/node/v14.15.0/lib
├── @microsoft/rush@5.53.0
├── node-gyp@8.2.0
├── node-pre-gyp@0.17.0
├── npm@7.24.0
└── yarn@1.22.11
Any ideas? Maybe this error means that I am connecting to a JSON-RPC backend that ia either not running or not returning a chain ID.
I had the same error,it is because the address of the RPC Server was incorrect. Check the address again and try.