Open bmordan opened 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.
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!
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
{
test: /\.css$/,
loaders: ['style-loader', 'css-loader'],
include: /node_modules/
}
including node_modules
solved it for me
Error: Cannot find module 'cssify' from '/Code/mysite/front-end/node_modules/react-spinkit'