Skip to content

TypeError: Cannot read property 'content' of undefined for "%" unit #389

Closed
@montgomery1944

Description

@montgomery1944

When using CSScomb 3.1.5 on LESS:

.test
{
    width: 100%;
}

I am getting exception:

TypeError: Cannot read property 'content' of undefined
    at csscomb\lib\options\unitless-zero.js:28:51
    at Object.Node.forEach (csscomb\node_modules\gonzales-pe\lib\node.js:63:17)
    at module.exports.process (csscomb\lib\options\unitless-zero.js:18:14)
    at Object.Node.map (csscomb\node_modules\gonzales-pe\lib\node.js:111:9)
    at csscomb\node_modules\gonzales-pe\lib\node.js:117:22
    at Array.forEach (native)
    at Object.Node.map (csscomb\node_modules\gonzales-pe\lib\node.js:115:22)
    at csscomb\node_modules\gonzales-pe\lib\node.js:117:22
    at Array.forEach (native)
    at Object.Node.map (csscomb\node_modules\gonzales-pe\lib\node.js:115:22)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions