Skip to content
This repository was archived by the owner on Mar 22, 2019. It is now read-only.
This repository was archived by the owner on Mar 22, 2019. It is now read-only.

Object false has no method 'alpha' #39

Description

@MoOx

Not sure what is creating this issue.
Maybe you should catch this error to give source (file:line:column) when possible ?
For the postcss plugins I've made I'm using this function

https://github.com/postcss/postcss-custom-properties/blob/2304d37b59b9ee430f1abf3c2ce5254e23e9b069/index.js#L161-L169

Here is the error I got, not clue where it is, my css is too big :D

events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Object false has no method 'alpha'
    at toRGBColor ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/csswring/lib/csswring.js:51:13)
    at String.replace (native)
    at wringValue ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/csswring/lib/csswring.js:94:17)
    at Array.map (native)
    at wringDecl ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/csswring/lib/csswring.js:305:18)
    at $PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:402:30
    at Rule.proto$0.each ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:88:20)
    at Rule.Container.WithDecls.proto$0.eachDecl ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:400:21)
    at $PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:331:36
    at Root.proto$0.each ($PROJECT/node_modules/gulp-cssnext/node_modules/cssnext/node_modules/postcss/lib/container.js:88:20)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions