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

Registry failed to return tag "buffer" with Yarn 2 and 3 #86

Closed
lorisleiva opened this issue May 2, 2022 · 1 comment · Fixed by #87
Closed

Registry failed to return tag "buffer" with Yarn 2 and 3 #86

lorisleiva opened this issue May 2, 2022 · 1 comment · Fixed by #87
Assignees

Comments

@lorisleiva
Copy link
Contributor

lorisleiva commented May 2, 2022

A nested dependency uses the npm:buffer alias as a dependency without providing a version range which causes the SDK installation to fail on Yarn version 2 and 3 (See yarnpkg/berry#1816).

buffer@npm:buffer: Registry failed to return tag "buffer"

The dependency that uses that tag is https://github.com/Bundlr-Network/arbundles which is a dependency of https://github.com/Bundlr-Network/js-client

Dependency tree

Steps to reproduce

For Yarn 3

mkdir js-next-yarn-3
cd js-next-yarn-3
yarn set version stable
yarn -v # <- 3.2.0
yarn add @metaplex-foundation/js-next # <- Error

For Yarn 2

mkdir js-next-yarn-2
cd js-next-yarn-2
yarn set version 2.x
yarn -v # <- 2.4.3
yarn add @metaplex-foundation/js-next # <- Error

Solution

We need to upgrade our @bundlr-network/client dependency to 0.8.0-rc1. (Checking with Josh first as it's not a stable version yet). 0.7.3.

Version 0.7.2 of @bundlr-network/client uses version 0.6.17-rc1 of arbundles which is requires the npm:buffer dependency.

Version 0.8.0-rc1 of @bundlr-network/client uses version 0.7.0-rc2 of arbundles which only requires the npm:buffer as a dev dependency and therefore solves this issue.

EDIT: Version 0.7.3 now also fixes this issue after talking to Josh.

@lorisleiva
Copy link
Contributor Author

Fix released in version 0.7.3. 🚀

Cc @austbot (FYI)

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

Successfully merging a pull request may close this issue.

1 participant