TVke / react-native-tailwindcss

A react-native style system based on TailwindCSS
https://tvke.github.io/react-native-tailwindcss/
MIT License
565 stars 34 forks source link

cannot generate tailwind config file #30

Closed jassehomar closed 4 years ago

jassehomar commented 4 years ago

Hi everyone. I ran into an error of generating the tailwind.config file. Here is the command below and output:

npx RNtailwindcss
cp: cannot stat '../react-native-tailwindcss/stubs/defaultConfig.stub.js': No such file or directory
thomas-j-back commented 4 years ago

I just came here to post about the same issue. Attempting to run thenpx RNtailwindcssreturns the same output for me.

thomas-j-back commented 4 years ago

Hi everyone. I ran into an error of generating the tailwind.config file. Here is the command below and output:

npx RNtailwindcss
cp: cannot stat '../react-native-tailwindcss/stubs/defaultConfig.stub.js': No such file or directory

I was able to generate a tailwind.config file by running npx tailwind init

If you check out the README.md included with the repository it includes different options for generating the config file with this command.

fredrivett commented 4 years ago

For those looking for a simple solution, you can just copy one of the files from the stubs directory in this repo to tailwind.config.js: https://github.com/TVke/react-native-tailwindcss/tree/master/stubs