Skip to content

TypeError: postcss.root is not a constructor #19

@SSinischo

Description

@SSinischo

Hello, I get the following message output to err executing the following test code:
"TypeError: postcss.root is not a constructor"

'''

const less = require('postcss-less-engine');

var exampleLess = fs.readFileSync(path.join(__dirname, 'less/test.less'), 'utf8');

postcss([
less({ strictMath: true }),
autoprefixer(),
])
.process(exampleLess, { parser: less.parser, from: 'less/test.less' })
.then(function (result) {
console.log(result.css);
}, function(err) {console.log("ERROR!!" + err)});
'''

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions