hirosystems / connect

A library for building excellent user experiences with Stacks.
https://connect.stacks.js.org
MIT License
76 stars 41 forks source link

Wallet `showConnect` not returning result #244

Closed wisdomabioye closed 1 year ago

wisdomabioye commented 2 years ago

Hi guys, showConnect function from @stacks/connect is loading forever. It worked a few days ago but not anymore. Is anyone experiencing this issue? The spinner keeps spinning without returning any result. Someone should help me out.

See the screenshot here

https://media.discordapp.net/attachments/745197302255321108/984584139435016232/unknown.png

Nsandomeno commented 2 years ago

Any code or console errors to share? I may be having a similar issue, which I believe is related to the failure to define Buffer for the browser - as done in the Hiro Angular tutorial here.

wisdomabioye commented 2 years ago

@Nsandomeno, I got no console error. I had the same challenge with Buffer not defined but I used craco to solve the problem by providing webpack config in craco.config.js file. See below. I am using react though.

const webpack = require("webpack");
module.exports = {
    webpack: {
        plugins: [
            new webpack.ProvidePlugin({
                process: "process/browser",
                Buffer: ["buffer", "Buffer"],
            }),
        ],
        configure: {
            resolve: {
                fallback: {
                    "buffer": require.resolve("buffer/"),
                }
            }
        }
    }
}
wisdomabioye commented 2 years ago

This is the error from the wallet extension console image

janniks commented 1 year ago

connect was updated to remove these node types a while back -- should be working now