anza-xyz / wallet-adapter

Modular TypeScript wallet adapters and components for Solana applications.
https://anza-xyz.github.io/wallet-adapter/
Apache License 2.0
1.59k stars 960 forks source link

Sollet broken in `example` project #239

Closed UncleBill closed 2 years ago

UncleBill commented 2 years ago

Describe the bug

Tested with latest code da0e7c6c7e3dda23ef358d56e453961dee44353b , found out that Sollet was broken in the example.

However it works on official demo. https://solana-labs.github.io/wallet-adapter/example/

A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

npx lerna bootstrap
cd ./packages/starter/example
yarn dev
# then open localhost:3000

Choose Sollet wallet (not the extension version) from the menu, but no popup open.

Expected behavior A clear and concise description of what you expected to happen.

Screenshots

The button changes, but no popup open.

image

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.

UncleBill commented 2 years ago

Sorry for the wrong screenshot, fixed now.

jordaaash commented 2 years ago

Hmm, thanks the report. I'll check this out, I can't think of why it would work in the demo and not locally -- I tested it myself locally and the demo is deployed from that build.

jordaaash commented 2 years ago

https://github.com/solana-labs/wallet-adapter#build-from-source

At a glance, it looks like the issue may be caused by how you set up the project. Running the commands here should work to build all the packages, and then you can run yarn dev from the example.

jordaaash commented 2 years ago

Closing this since it works in the demo build. It looks like another issue is that you don't have autoConnect enabled in your screenshot.