KyleAMathews / react-spinkit

A collection of loading indicators animated with CSS for React
http://kyleamathews.github.io/react-spinkit/
MIT License
1.49k stars 73 forks source link

Cannot find cssify #46

Open bmordan opened 7 years ago

bmordan commented 7 years ago

Error: Cannot find module 'cssify' from '/Code/mysite/front-end/node_modules/react-spinkit'

KyleAMathews commented 7 years ago

I'll assume you're using Browserify — in which case you need to add "cssify" for react-spinkit to work as it requires its own CSS.

kevinguard commented 7 years ago

I had the same issue and despite installing cssify, I now hit a different issue: /Users/project/node_modules/loaders.css/loaders.css:14 @-webkit-keyframes scale { ^ ParseError: Unexpected character '@' I suspect it has something to do with webpack and css-loader. I use gulp instead of webpack and that's why I am getting this issue. I suspect @bmordan is using something other than webpack. Just wondering!

Gashik209 commented 6 years ago

I had the same issue with webpack and css-loader: ...\node_modules\loaders.css\loaders.css:14 @-webkit-keyframes scale { ^ SyntaxError: Invalid or unexpected token

Fixed by set process.env.REACT_SPINKIT_NO_STYLES

CWolfAnderson commented 6 years ago
{
      test: /\.css$/,    
      loaders: ['style-loader', 'css-loader'],
      include: /node_modules/
}

including node_modules solved it for me