Description
When invoking the message method from a browser using the @permaweb/aoconnect library, the following error is encountered:
t37.connect is not a function
Breakpoint debugging indicates that the variable t37 appears to represent the wallet. However, instead of being a wallet instance with a connect method, it is a JSON object.
Steps to Reproduce
- Use the @permaweb/aoconnect library in a browser environment.
- Execute the following code snippet:
import { createSigner, message } from "@permaweb/aoconnect";
const sendMessage = async () => {
const wallet = { ... }; // your wallet object initialization
const transferID = await message({
process: '0syT13r0s0tgPmIed95bJnuSqaD29HQNN8D3ElLSrsc',
signer: createSigner(wallet),
tags: [
{ name: "Action", value: "Transfer" },
{ name: "Recipient", value: "Xo8vMxwqtFWHFIvDkWFQ11MYcmwOi215LHK1_rC0r_w" },
{ name: "Quantity", value: "1000000000" },
{ name: "Client", value: "Ouro" },
{ name: "Client-Version", value: "1.0.0" }
]
});
}
- The error t37.connect is not a function is thrown when attempting to execute the above code.
Environment Information
"@permaweb/aoconnect": "^0.0.78",
"vite": "^6.2.0",
"vue": "^3.5.13"