I've got a Substrate node running locally on my PC, following this tutorial. https://substrate.dev/docs/en/tutorials/create-your-first-substrate-chain/interact. It can be viewed on two ports:
Local: http://localhost:8000/substrate-front-end-template
On Your Network: http://192.168.56.1:8000/substrate-front-end-template
So I don't think connectivity is the issue.
Anyway, I bound the @polkadot/api to my node via the command:
yarn add @polkadot/api.
I'm now getting an error, in the browser, whenever I run my node:
Error Connecting to Substrate
Error: FATAL: Unable to initialize the API: createType(StorageKey):: Derived TypedArray constructor created an array which was too small
Can anyone help?
requirea path, you configure the client library with the URL of the RPC server of the node you want to connect to. For instance, the Front-End Template is configured to connect to the local node, but you can change this github.com/substrate-developer-hub/substrate-front-end-template/… - Dan Forbes