react-native-tailwindcss icon indicating copy to clipboard operation
react-native-tailwindcss copied to clipboard

configHandles.js error

Open ashinlaurel opened this issue 5 years ago • 6 comments

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

ashinlaurel avatar Jul 19 '20 13:07 ashinlaurel

Hi @ashinlaurel

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

greetings Thomas

TVke avatar Jul 27 '20 19:07 TVke

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

ashinlaurel avatar Jul 27 '20 19:07 ashinlaurel

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

TVke avatar Jul 28 '20 08:07 TVke

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

ashinlaurel avatar Jul 29 '20 09:07 ashinlaurel

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

TVke avatar Sep 07 '20 08:09 TVke

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.

IJustDev avatar Jan 27 '21 14:01 IJustDev