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

spl-token library failing to run on client side #6506

Closed
kr-keshav-kk opened this issue Mar 27, 2024 · 1 comment
Closed

spl-token library failing to run on client side #6506

kr-keshav-kk opened this issue Mar 27, 2024 · 1 comment
Labels
question Further information is requested

Comments

@kr-keshav-kk
Copy link

I am using SvelteKit with Vite and using static adapter and the pages are CSR.

After adding the below line i am getting the error:
import {getAssociatedTokenAddressSync,TOKEN_PROGRAM_ID,createTransferInstruction} from '@solana/spl-token';

Also, it works fine on development mode(maybe because it has node environment) but when running the production build, it shows the below error(screenshot).
image

@joncinque joncinque added the question Further information is requested label Mar 27, 2024
Copy link
Contributor

Hi @kr-keshav-kk,

Thanks for your question!

We want to make sure to keep signal strong in the GitHub issue tracker – to make sure that it remains the best place to track issues that affect the development of Solana itself.

Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with Solana itself, please post your question to the Solana Stack Exchange using this link: https://solana.stackexchange.com/questions/ask


This automated message is a result of having added the ‘question’ tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants