-
Notifications
You must be signed in to change notification settings - Fork 189
rails tailwindcss:build
fails on Apple M1.
#121
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
rails tailwindcss:build
fails on M1.rails tailwindcss:build
fails on Apple M1.
@andrewculver Sorry you're having problems. Can I ask you to respond with the output of |
@flavorjones Here you go! Machine one (MacBook Pro, M1 Pro, macOS Monterey)
|
Machine two (MacBook Air, M1, macOS Big Sur)
|
@flavorjones Also, I was able to confirm that everything worked as expected on an Intel-based MacBook. (If anyone is lacking M1-based hardware to test on, let me know and we can make some available or I can do testing on my end.) |
I can work around the issue locally by doing the following from the "Standalone CLI: Use Tailwind CSS without Node.js" blog post:
And then moving that into place like so:
Then this works:
|
OK, maybe there is something I don't understand about how Bundler is supposed to work, but when I uninstall the gem and then install directly with
But even after doing
And I can confirm it installed the wrong version with
I can reproduce this same issue with the |
If I remove the
Output from
|
OK, sorry for all the noise here, all of this appears to be because of this setting in
Which... makes sense. 😅 This isn't the default setting, so there's no issue here per se, but I've submitted #122 in case it makes sense to warn others in the same situation. |
Thanks for closing the loop here, @andrewculver. |
See #123 where I've updated the README with a troubleshooting section. |
Not sure why this was closed. This is still very much an issue. The solution proposed here runs the code in an x64 emulation. Trying to install this gem on an M1 system has been an absolute nightmare because it can't properly detect the platform. |
I'm able to reproduce this with just
rails new example-application --css=tailwind
.Example output:
Output from taking the steps requested above:
Finally, after trying to edit
Gemfile
to point directly togithub: 'rails/tailwindcss-rails'
, the result is still the same:The text was updated successfully, but these errors were encountered: