connect icon indicating copy to clipboard operation
connect copied to clipboard

Wallet `showConnect` not returning result

Open wisdomabioye opened this issue 2 years ago • 3 comments

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

wisdomabioye avatar Jun 10 '22 17:06 wisdomabioye

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.

Nsandomeno avatar Jun 12 '22 16:06 Nsandomeno

@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 avatar Jun 12 '22 18:06 wisdomabioye

This is the error from the wallet extension console image

wisdomabioye avatar Jun 12 '22 23:06 wisdomabioye

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

janniks avatar Feb 08 '23 16:02 janniks