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

Yarn Install Broken Since 1.6.2 #36

Open
raray opened this issue Jul 5, 2023 · 7 comments
Open

Yarn Install Broken Since 1.6.2 #36

raray opened this issue Jul 5, 2023 · 7 comments

Comments

@raray
Copy link

raray commented Jul 5, 2023

Error:

YN0009: │ external-svg-loader@npm:1.6.2 couldn't be built successfully (exit code 1, logs can be found here: /private/var/folders/06/dss6d1c143n7z9lyn1h87gkh0000gn/T/xfs-a88289a6/build.log)
# This file contains the result of Yarn building a package (external-svg-loader@npm:1.6.2)
# Script name: postinstall

No matches found: "build:*"

We've locked our version to 1.6.1 for now.

@raray
Copy link
Author

raray commented Jul 5, 2023

I had a similar issue (#30) that was resolved by moving the dependency from dev to normal dependencies. This project uses Yarn and has no such distinction

@shubhamjain
Copy link
Owner

1.6.2 is broken, but the subsequent versions are fixed. You should remove external-svg-loader and add it again. And it should work.

@raray
Copy link
Author

raray commented Aug 3, 2023

@shubhamjain Hmm. I'm still getting this error:

external-svg-loader@npm:1.6.8 couldn't be built successfully (exit code 1 ...

It installs successfully after forcing it back to 1.6.1.

@shubhamjain
Copy link
Owner

Strange.

Doing either of

yarn add [email protected]
yarn add external-svg-loader

is working for me. What's the full error message? Does

yarn remove external-svg-loader
yarn add [email protected]

solve it?

@raray
Copy link
Author

raray commented Aug 3, 2023

@shubhamjain It doesn't. I tried the above as well as blowing away my entire cache and lock file. Here's the contents of the log file:

# This file contains the result of Yarn building a package (external-svg-loader@npm:1.6.8)
# Script name: postinstall

No matches found: "build:*"

I failed to mention, and perhaps relevant, I am using [email protected] with PnP.

@shubhamjain
Copy link
Owner

According to https://github.com/yarnpkg/yarn/releases. The latest version 1.22.19. How are you using 3.2.3?

@raray
Copy link
Author

raray commented Aug 9, 2023

This repository holds the sources for Yarn 1.x (latest version at the time of this writing being 1.22). New releases (at this time the 3.2.3, although we're currently working on our next major) are tracked on the yarnpkg/berry repository, this one here being mostly kept for historical purposes and the occasional hotfix we publish to make the migration from 1.x to later releases easier.

If you hit bugs or issues with Yarn 1.x, we strongly suggest you migrate to the latest release - at this point they have been maintained longer than 1.x, and many classes of problems have already been addressed there. By using the nodeLinker setting you'll also have the choice of how you want to install your packages: node_modules like npm, symlinks like pnpm, or manifest files via Yarn PnP.

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

No branches or pull requests

2 participants