Skip to content
This repository has been archived by the owner on Jan 22, 2025. It is now read-only.

[2.0.0-rc1] Module '"@solana/web3.js"' has no exported member 'Keypair' #3497

Closed
ugobriasco opened this issue Oct 30, 2024 · 3 comments
Closed
Labels
bug Something isn't working question Add this to close an issue with instructions on how to repost as a question on Stack Exchange

Comments

@ugobriasco
Copy link

Overview

I gave a try on the 2.0.0-rc.1 , finding out a pretty big breaking change. The Keypair class and its related interface seems to be removed.

Steps to reproduce

  • Use "@solana/web3.js": "^2.0.0-rc.1",
  • import { Keypair } from "@solana/web3.js"; in an arbitrary .ts file

--> Module '"@solana/web3.js"' has no exported member 'Keypair'.ts(2305)

Description of bug

Missing Kepair member

@ugobriasco ugobriasco added the bug Something isn't working label Oct 30, 2024
@ugobriasco ugobriasco changed the title Module '"@solana/web3.js"' has no exported member 'Keypair' [2.0.0-rc1] Module '"@solana/web3.js"' has no exported member 'Keypair' Oct 30, 2024
@mcintyre94
Copy link
Contributor

You're right, there is no Keypair in the new web3js. See the readme here: https://github.com/solana-labs/solana-web3.js?tab=readme-ov-file#keys and here: https://github.com/solana-labs/solana-web3.js/tree/master/packages/keys for how the new keys API works.

I'll also link the stackexchange below, please post a question there if you have any specific questions about using the new API.

@mcintyre94 mcintyre94 added the question Add this to close an issue with instructions on how to repost as a question on Stack Exchange label Oct 30, 2024
Copy link
Contributor

Hi @ugobriasco,

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 the Solana JavaScript SDK itself.

Questions like yours deserve a purpose-built Q&A forum. Unless there exists evidence that this is a bug with the Solana JavaScript SDK 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.

Copy link
Contributor

github-actions bot commented Nov 7, 2024

Because there has been no activity on this issue for 7 days since it was closed, it has been automatically locked. Please open a new issue if it requires a follow up.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 7, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working question Add this to close an issue with instructions on how to repost as a question on Stack Exchange
Projects
None yet
Development

No branches or pull requests

2 participants