-
Notifications
You must be signed in to change notification settings - Fork 1.1k
[Bug]: Unable to install headlessui
deps on M1
#868
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
Comments
That's strange. I also have a Macbook with M1 but I use NPM instead of YARN and I was able to install it without any issues. I'm also building a project with Vite but using Vue instead of React, I don't know if the issue is only with React. |
I've been using headless ui with react on m1 for a while without any problems. You could try to downgrade node version or start the terminal in rosetta compatibility mode. |
This is an issue with working on the |
Not M1 specific, but I also had to downgrade my node version to 16.8 using |
Hey! Thank you for your bug report! Most people on the Tailwind Labs team, including myself are on an m1 and we don't seem to have this issue. Because of this, I'm closing it since I can't reproduce this. |
What package within Headless UI are you using?
@headlessui/react
What version of that package are you using?
v1.4.1
What browser are you using?
n/a
Reproduction repository
n/a
Describe your issue
I noticed that
yarn
fails to install the deps for this repo when run on an M1 mac:The important bit being:
This appears to be an issue with
sharp
which was resolved inv0.28.0
: lovell/sharp#2460 (comment)The dependency on
sharp
comes fromnext
:The version of
next
in use byheadlessui
,10.0.5
, depends on sharpv0.26.3
.It looks like
next
removed thesharp
dep in10.0.8
, so should be sufficient to upgrade to>=10.0.8
.There's another warning in there for
esbuild
, which comes fromvite
. Upgrading to the latest1.x
(1.0.0-rc.13
) seems to fix.The text was updated successfully, but these errors were encountered: