Closed theInfiniteWill closed 2 years ago
Are you using the latest version of @solana/web3.js
?
The resolveClusterFromConnection
method relies on the existence of connection.rpcEndpoint
which was added to the Connection
class fairly recently.
Updating to v1.43.6 did fix it. Thanks for the help
I'll always get
TypeError: Invalid URL
when I create the Metaplex object even when using a known good Connection.Example code in Node. Running Node 18.2 locally
this.connection = new Connection(clusterApiUrl('devnet'));
this.metaplex = Metaplex.make(this.connection)
I'll get the error when I'm trying to create the metaplex object.
TypeError: Invalid URL
. I can confirm that the connection itself works fine as I'm able to make and receive calls with it.A more specific call stack using
tsc
since I saw another bug that mentioned usingtsc
fixed it for themWhat am I doing wrong here?