tailwindlabs / headlessui

Completely unstyled, fully accessible UI components, designed to integrate beautifully with Tailwind CSS.
https://headlessui.com
MIT License
25.81k stars 1.07k forks source link

Installation Error: No Matching Version Found for @tanstack/virtual-core@3.10.0 #3430

Closed wilsuriel03 closed 4 weeks ago

wilsuriel03 commented 1 month ago

What package within Headless UI are you using?

@headlessui/react

What version of that package are you using?

v2.1.2

What browser are you using?

N/A (Issue occurs during package installation)

Reproduction URL

Since this is an issue with package installation, a CodeSandbox reproduction is not applicable. However, the issue can be reproduced with the following steps:

  1. Create a new project or navigate to an existing project.
  2. Attempt to install @headlessui/react@2.1.2 using pnpm with the command: pnpm add @headlessui/react@latest
  3. Observe the error related to the missing version of@tanstack/virtual-core.

Describe your issue

When trying to install the latest version of @headlessui/react@2.1.2 using pnpm, the installation fails with the following error message:

 ERR_PNPM_NO_MATCHING_VERSION  No matching version found for @tanstack/virtual-core@3.10.0

This error happened while installing the dependencies of @headlessui/react@2.1.2
 at @tanstack/react-virtual@3.10.0

The latest release of @tanstack/virtual-core is "3.9.0".

It appears that the dependency @tanstack/react-virtual@3.10.0is expecting @tanstack/virtual-core@3.10.0, which does not exist in the registry. The latest available version of @tanstack/virtual-core is 3.9.0.

This issue prevents the installation of the @headlessui/react package, blocking usage in projects that rely on it.

beeirl commented 1 month ago

same issue here

Lawliang commented 1 month ago

same

AlissonRoss commented 1 month ago

Same... rollback to 2.0

wilsuriel03 commented 1 month ago

If you're experiencing this issue, try rolling back to @headlessui/react@2.1.1, which works without the dependency problem.

Lawliang commented 1 month ago

If you're experiencing this issue, try rolling back to @headlessui/react@2.1.1, which works without the dependency problem.

did this work for everyone? i'm still getting the dependency error after rolling back to 2.1.1

EDIT: Nevermind, works!

bigshirtjonny commented 1 month ago

did this work for everyone? i'm still getting the dependency error after rolling back to 2.1.1

@Lawliang - Yep this worked for me

THAgility commented 1 month ago

Version 2.1.1 worked for me

nilsbunger commented 1 month ago

The underlying issue in tanstack is tracked here

owenherbert commented 1 month ago

I fixed my deployment pipelines by changing my dependency to "@headlessui/react": "2.1.1"

Yuripetusko commented 1 month ago

Fixed by adding this to package.json

"resolutions": {
    "@tanstack/virtual-core": "3.9.0"
  }
varzoeaa commented 1 month ago

thank you so much! it works for me too <3

DominikButz commented 1 month ago

same, just installed 2.0.0-alpha.4 instead.

e1016 commented 1 month ago

solved upgrading to "@headlessui/react": "^2.1.2"

RobinMalfait commented 4 weeks ago

Hey!

We don't pin an exact version of @tanstack/virtual, so no change is required from our end. They made a small bug and published a version and unpublished it.

This should all be solved already 👍