Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Impossible to use solana connection in vanilla JS #3553

Open
beeb opened this issue Dec 30, 2024 · 5 comments
Open

[bug] Impossible to use solana connection in vanilla JS #3553

beeb opened this issue Dec 30, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@beeb
Copy link

beeb commented Dec 30, 2024

Link to minimal reproducible example

https://stackblitz.com/edit/vitejs-vite-i19qspur?file=src%2Fmain.js

Summary

In vanilla JS, it is currently impossible to retrieve the solana Connection object from @reown/appkit-adapter-solana.

The vue and react exports specify a useAppKitConnection hook to retrieve that connection, but it's unavailable in vanilla JS.

Even the SolStoreUtil cannot be imported from @reown/appkit-adapter-solana because it's only exported as a type here:

export type * from './utils/SolanaStoreUtil.js'

List of related npm package versions

@reown/appkit-adapter-solana v1.6.2

Node.js Version

v22

Package Manager

pnpm 9.15.1

@beeb beeb added bug Something isn't working needs review labels Dec 30, 2024
Copy link

linear bot commented Dec 30, 2024

@reown-com reown-com deleted a comment Dec 30, 2024
@rtomas
Copy link
Contributor

rtomas commented Dec 30, 2024

Thanks for reporting the issue ... we are working to solve it as soon as possible.

@arein
Copy link
Contributor

arein commented Jan 2, 2025

Thx for reporting @beeb - curious - what are you building?

@beeb
Copy link
Author

beeb commented Jan 2, 2025

@arein just trying to find the best way to integrate with Svelte. No particular project in mind.

@ethan-tqa
Copy link

Yep, I have also filed a bug report for the doc here: reown-com/reown-docs#230

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants