Skip to content

'Selector' option throws TypeError #39

@SWBennett06

Description

@SWBennett06

With the 'selector' option set to true using 6.0.0, the plugin throws the following error. This occurs even without any selectors being built with calc() in my stylesheets.

TypeError: Cannot read property 'charCodeAt' of undefined
  at module.exports (fakepath/node_modules/postcss-value-parser/lib/parse.js:17:21)
  at new ValueParser (fakepath/node_modules/postcss-value-parser/lib/index.js:7:22)
  at ValueParser (fakepath/node_modules/postcss-value-parser/lib/index.js:10:12)
  at exports.default (fakepath/node_modules/postcss-calc/node_modules/reduce-css-calc/dist/index.js:29:43)
  at transformValue (fakepath/node_modules/postcss-calc/dist/lib/transform.js:20:45)
  at fakepath/node_modules/postcss-calc/dist/lib/transform.js:36:19
  at fakepath/node_modules/postcss-selector-parser/dist/selectors/container.js:170:26
  at Selector.each (fakepath/node_modules/postcss-selector-parser/dist/selectors/container.js:153:22)
  at Selector.walk (fakepath/node_modules/postcss-selector-parser/dist/selectors/container.js:169:21)
  at fakepath/node_modules/postcss-selector-parser/dist/selectors/container.js:173:31

Running through the gulp-postcss 7.0.0, which is using PostCSS 6.0.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions