Skip to content

Error "t37.connect is not a function" when using the message method in @permaweb/aoconnect (Browser) #1196

@TiyoSheng

Description

@TiyoSheng

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

  1. Use the @permaweb/aoconnect library in a browser environment.
  2. 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" }
    ]
  });
}
  1. 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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions