Skip to content

Object #<Object> has no method 'blackness' #2

Closed
@MoOx

Description

@MoOx

Just got the issue with blackness, not sure why since it seems correctly exported in lib/index.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
TypeError: Object #<Object> has no method 'blackness'
    at Object.<anonymous> (/colortest/node_modules/rework-color-function/node_modules/css-color-function/lib/adjusters.js:106:35)
    at /colortest/node_modules/rework-color-function/node_modules/css-color-function/lib/convert.js:56:20
    at Array.forEach (native)
    at toRGB (/colortest/node_modules/rework-color-function/node_modules/css-color-function/lib/convert.js:42:7)
    at Object.convert (/colortest/node_modules/rework-color-function/node_modules/css-color-function/lib/convert.js:28:10)
    at convert (/colortest/node_modules/rework-color-function/lib/index.js:65:41)
    at declaration (/colortest/node_modules/rework-color-function/lib/index.js:41:17)
    at Array.forEach (native)
    at rule (/colortest/node_modules/rework-color-function/lib/index.js:28:42)
    at Array.forEach (native)

Note: I tested lightness() which work as expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions