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

error: failed to select a version for the requirement swc = "^0.284.0" #9434

Open
GWSzeto opened this issue Aug 15, 2024 · 0 comments
Open
Labels

Comments

@GWSzeto
Copy link

GWSzeto commented Aug 15, 2024

Describe the bug

I'm running into this error after cloning the projects and trying to run cargo build

For context, I had previously cloned the repo and successfully ran cargo build with no issues.
I also installed @swc/core and @swc/cli via npm globally if this matters at all

After removing the swc repo, cloning it once more and then running cargo build I was met with the following error

error: failed to select a version for the requirement swc = "^0.284.0"
I've tried cargo clean, cargo update, updating my rust version via rustup update stable and removing Cargo.lock and trying cargo build once more

None of this worked.

Also tried to check out a previous commit and tried again

Still no luck.

Does anyone have any idea as to why this is happening?

Input code

No response

Config

No response

Playground link (or link to the minimal reproduction)

https://play.swc.rs/

SWC Info output

Operating System:
    Platform: darwin
    Arch: arm64
    Machine Type: arm64
    Version: Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:59 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6030
    CPU: (12 cores)
        Models: Apple M3 Pro

Binaries:
    Node: 22.4.1
    npm: 10.8.1
    Yarn: N/A
    pnpm: 9.5.0

Relevant Packages:
    @swc/core: N/A
    @swc/helpers: N/A
    @swc/types: N/A


SWC Config:
    output: N/A
    .swcrc path: N/A

Next.js info:
    output: N/A

Expected behavior

Expected it to build properly

Actual behavior

No response

Version

1.7.11

Additional context

No response

@GWSzeto GWSzeto added the C-bug label Aug 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant