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

configHandles.js error #40

Open ashinlaurel opened 4 years ago

ashinlaurel commented 4 years ago

image I am getting the following error - Unable to resolve "../../../tailwind.config" from "node_modules/react-native-tailwindcss/util/configHandler.js"

Please do look into it

TVke commented 4 years ago

Hi @ashinlaurel

with version of react-native-tailwind is this as there was a similar problem in an older version

greetings Thomas

ashinlaurel commented 4 years ago

This occurred in version 1.1.9 And i commented the following lines in configHandler.js and this error disappeared. image

TVke commented 4 years ago

Yes @ashinlaurel

This is true but do you have a config file? Because when you comment out that line it will not load a custom config file I suggest uncommenting that line and adding a config file (even an empty one is oké) e.g.:

module.exports = {
  theme: {
    extend: {},
  },
}

greetings Thomas

ashinlaurel commented 4 years ago

Yup that seemed to solve the problem. And it would be great if this file is created by default when this package is installed.

TVke commented 4 years ago

hi @ashinlaurel

That's a good idea I have no idea how to do this but I would gladly accept a PR for this.

greetings Thomas

IJustDev commented 3 years ago

Would love to work on this! A friend of mine told me it's still up to date, I will submit a pr right away.