Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including external dependencies that require stylesheets do not work. #74

Closed
nbwar opened this issue Sep 17, 2015 · 2 comments
Closed

Comments

@nbwar
Copy link

nbwar commented Sep 17, 2015

I've tried using external libraries that require css files via require('someFile.css') result in errors like the following

ERROR in ../~/react-cropper/~/cropper/dist/cropper.css
Module parse failed: node_modules/react-cropper/node_modules/cropper/dist/cropper.css Line 10: Unexpected token .
You may need an appropriate loader to handle this file type.
|  * Date: 2015-08-22T04:54:51.269Z
|  */
| .cropper-container {
|   position: relative;
|   overflow: hidden;
 @ ../~/react-cropper/dist/react-cropper.js 21:0-35
@nbwar nbwar changed the title Including external dependency that require stylesheets does not work. Including external dependencyies that require stylesheets do not work. Sep 17, 2015
@nbwar nbwar changed the title Including external dependencyies that require stylesheets do not work. Including external dependencies that require stylesheets do not work. Sep 17, 2015
@nbwar
Copy link
Author

nbwar commented Sep 17, 2015

Fixed by adding { test: /\.css$/, loader: ExtractTextPlugin.extract('style', 'css') } to webpack.config

@ma-vo
Copy link

ma-vo commented Mar 31, 2017

Issue isn't fixed at all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants