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

Module build failed: color: #4a4ae5d1; #503

wzup opened this issue Oct 28, 2017 · 2 comments


None yet
2 participants
Copy link

commented Oct 28, 2017

What's wrong with this CSS rule?
It works just fine in a browser but throws in Webpack sass-loader:

&:after {
    content: "\f08e";
    font-family: FontAwesome;
    position: absolute;
    font-size: 9px;
    margin-left: 3px;
    color: #4a4ae5d1;  // <== What's wrong with it? `node-sass` throws


ERROR in ./src/sass/Index.local.scss
    Module build failed: ModuleBuildError: Module build failed:
                                        color: #4a4ae5d1;
          Invalid CSS after "...         color:": expected expression (e.g. 1px, bold), was "#4a4ae5d1;"
          in C:\Users\user\app\src\sass\Index.local.scss (line 651, column 44)
        at runLoaders (C:\Users\user\app\node_modules\webpack\lib\NormalModule.js:195:19)
        at C:\Users\user\app\node_modules\loader-runner\lib\LoaderRunner.js:364:11
        at C:\Users\user\app\node_modules\loader-runner\lib\LoaderRunner.js:230:18
        at context.callback (C:\Users\user\app\node_modules\loader-runner\lib\LoaderRunner.js:111:13)
        at Object.asyncSassJobQueue.push [as callback] (C:\Users\user\app\node_modules\sass-loader\lib\loader.js:55:13)
        at Object.<anonymous> (C:\Users\user\app\node_modules\async\dist\async.js:2244:31)
        at Object.callback (C:\Users\user\app\node_modules\async\dist\async.js:906:16)
        at options.error (C:\Users\user\app\node_modules\node-sass\lib\index.js:294:32)
     @ ./src/js/DashboardTest.js 19:10-37
     @ ./src/js/routes.js
     @ ./src/js/browser.js

This comment has been minimized.

Copy link

commented Oct 30, 2017

@wzup seems node-sass doesn't support long color, need investigation, thank for issue


This comment has been minimized.

Copy link

commented Nov 14, 2017

@wzup libsass version 3.5.0.beta.2 don't support #rrggbbaa hex color notation, you can try this in Please create issue in libsass about this, Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.