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 running TailwindCSS CLI, please run the CLI manually to see the error #813

Open
MyNameIsHakem opened this issue Feb 20, 2024 · 10 comments · May be fixed by #840
Open

Error running TailwindCSS CLI, please run the CLI manually to see the error #813

MyNameIsHakem opened this issue Feb 20, 2024 · 10 comments · May be fixed by #840

Comments

@MyNameIsHakem
Copy link

Hello everybody!

So I'm making a RN project that implements Tailwind css using Native Wind, my project has been working perfectly until lately when I started getting this error :
image

When I did go to the Native Wind documentation, this is what I saw :
image (1)

and I don't have the file generated in the cache (the "node_modules/.cache/nativewind/..css" file) maybe that have something to do with the error.
So what should I do ?

@marklawlor
Copy link
Owner

You should follow the instructions and run npx tailwindcss --input <input.css> and report what the error is

@MyNameIsHakem
Copy link
Author

You should follow the instructions and run npx tailwindcss --input <input.css> and report what the error is

I already did that but there was no problem with the result as far as I could see.

@JWesorick
Copy link

JWesorick commented Feb 23, 2024

Having the same issue. Running the cli shows no error. Development works fine. Building in release iOS throws this error.

@JWesorick
Copy link

JWesorick commented Feb 23, 2024

My issue was resolved with the solution in #751

https://andrewchaa.me.uk/how-to-fix-the-node-command-not-found-error-when-building-a-react-native-app-in-xcode/

@feledori
Copy link

feledori commented Mar 6, 2024

This has to do with your local folder structure. Nativewind does not escape blank spaces when using the cli so it fails to call it. Try removing the blank space in the folder which has your local-chat folder in it. Then it should work for now. I created a pull request which should solve this issue.

@benrbowers
Copy link

benrbowers commented Mar 15, 2024

*[Edit]: I think I am dealing with #836 and this is indeed solved by #840. This comment may still be useful to those who get here through google search though.

Having this issue* and working version for me seems to be 4.0.14

Literally the bare minimum version for me because this is the version gap-x starts working.

And lo and behold, there seems to be a commit that deals with the tailwind cli between 14 and 15. I tried passing 'npx tailwindcss' and 'yarn tailwindcss' to the cliCommand option in the metro.config, but nothing seems to work for version 4.0.15 and onward.
After 4.0.15, simply gets stuck at tailwindcss(native) rebuilding... then tells me to run the command manually.

@benrbowers
Copy link

benrbowers commented Mar 15, 2024

After changing to 4.0.15 but reverting 6bb5648, the problem still persists. Not really sure what the problem is at this point, but the solution remains to be to use 4.0.14

@angelo-hub
Copy link

I'm still getting this

@benrbowers
Copy link

After changing to 4.0.15 but reverting 6bb5648, the problem still persists. Not really sure what the problem is at this point, but the solution remains to be to use 4.0.14

My problem ended up being yarn v1. Upgraded to yarn v4 and node 20.12.2, and nativewind@4.0.36 now works without hanging at the Tailwind CLI part

@greatcat19
Copy link

if you copy this command and paste it to the script phase of xcode, you'll see the actual error

it should be something like

ios/tailwind.config.js not found

there should be a way to change the path resolve of this config file

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

Successfully merging a pull request may close this issue.

7 participants