thabti / react-native-css

Style React-Native components with css
MIT License
769 stars 66 forks source link

TypeError: cb is not a function #24

Closed Lxxyx closed 8 years ago

Lxxyx commented 8 years ago

when I want to use react-native-css like this

react-native-css ./styles/css/new.css ./styles/js/style.js

then

/Users/lxxyx/.nvm/versions/node/v5.8.0/lib/node_modules/.react-native-css_npminstall/react-native-css/1.2.29/react-native-css/build/index.js:58
          cb(styleSheet);
          ^

TypeError: cb is not a function
    at /Users/lxxyx/.nvm/versions/node/v5.8.0/lib/node_modules/.react-native-css_npminstall/react-native-css/1.2.29/react-native-css/build/index.js:58:11
    at tryToString (fs.js:414:3)
    at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:401:12)

I had try sass scss and css but i got same question.

My OS is mac osx 10.10 and node.js 5.7/5.8(5.7,5.8,4.4LTS got same question)

Thank you

thabti commented 8 years ago

@Lxxyx I will look into this

thabti commented 8 years ago

@Lxxyx this was an oversight from myself, I have pushed a fix. I will add tests that will cover this scenario so that it wont happen in the future.

I will provide you with a new version ASAP.

thabti commented 8 years ago

@Lxxyx fixed

Lxxyx commented 8 years ago

@sabeurthabti Ok,Thank you~