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

Types have separate declarations of a private property 'getCancellationPromise'. #3138

Closed
developer-otto opened this issue Aug 23, 2024 · 5 comments
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

@developer-otto
Copy link

node v20.15.1
pnpm V8.14.0
next v14.0.4
@solana/web3.js v1.95.3

When I execute pnpm build it throws the error:
image

@developer-otto developer-otto added the bug Something isn't working label Aug 23, 2024
@steveluscher
Copy link
Contributor

This is owing to the fact that you have two copies of @solana/web3.js in your project (search term: dual package hazard). Check the lockfile of your project to figure out why, and where the second version is coming from.

@developer-otto
Copy link
Author

Just installing @solana/web3.js and @project-serum/anchor in my project will cause this problem. How can I solve it?

@Manice18
Copy link

Just installing @solana/web3.js and @project-serum/anchor in my project will cause this problem. How can I solve it?

I was having the same issue with yarn so I just removed the yarn lock file and did a fresh install with npm.
It seems to be working fine now.

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

Hi @developer-otto,

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 Sep 9, 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 Sep 9, 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

3 participants