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

Webpack 4 and mini-css-extract-plugin issue with toolbox css import #68

Open
AndreasSchouten opened this issue Aug 10, 2018 · 0 comments

Comments

@AndreasSchouten
Copy link

AndreasSchouten commented Aug 10, 2018

I'm upgrading my project to webpack 4 and use the new recommended mini-css-extract-plugin.

When importing a toolbox class i.E.

import Switch from 'react-toolbox/lib/switch';
(or import {Switch} from 'react-toolbox/lib/switch';)

I get this error:


ERROR in ../node_modules/react-toolbox/lib/button/theme.css
Module build failed (from ../node_modules/mini-css-extract-plugin/dist/loader.js):
ModuleBuildError: Module build failed (from ../node_modules/css-loader/index.js):
Error: composition is only allowed when selector is single :local class name not in ".raised", ".raised" is weird

Also this error is thrown if I use an import in an css file like:
@import "react-toolbox/lib/button/theme.css";

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

1 participant