This began after upgrading from 0.97.3 to 0.99.1.
Made sure the extended version is installed, and tried installing the packages mentioned in the error message: purgecss and cssnano.
I’m at a loss on how to keep debuging this issue.
Start building sites …
hugo v0.97.3-078053a43d746a26aa3d48cf1ec7122ae78a9bb4+extended darwin/amd64 BuildDate=2022-04-18T17:22:19Z VendorInfo=gohugoio
Error: Error building site: POSTCSS: failed to transform "css/style.css" (text/css): TypeError: t.test is not a function
at /Users/brunoamaral/Labs/gregory/stdin:6:4
at /Users/brunoamaral/Labs/gregory/node_modules/purgecss/lib/purgecss.js:1:9044
at Array.some (<anonymous>)
at P.isSelectorSafelistedGreedy (/Users/brunoamaral/Labs/gregory/node_modules/purgecss/lib/purgecss.js:1:9033)
at /Users/brunoamaral/Labs/gregory/node_modules/purgecss/lib/purgecss.js:1:10103
at Array.some (<anonymous>)
at P.shouldKeepSelector (/Users/brunoamaral/Labs/gregory/node_modules/purgecss/lib/purgecss.js:1:10086)
at /Users/brunoamaral/Labs/gregory/node_modules/purgecss/lib/purgecss.js:1:7137
at /Users/brunoamaral/Labs/gregory/node_modules/postcss-selector-parser/dist/selectors/container.js:225:20
at Root.each (/Users/brunoamaral/Labs/gregory/node_modules/postcss-selector-parser/dist/selectors/container.js:207:16)
at Root.walk (/Users/brunoamaral/Labs/gregory/node_modules/postcss-selector-parser/dist/selectors/container.js:224:17) {
postcssNode: Rule {
raws: { before: '', between: '', semicolon: false, after: '' },
type: 'rule',
nodes: [
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration],
[Declaration], [Declaration]
],
parent: Root {
raws: [Object],
type: 'root',
nodes: [Array],
source: [Object],
lastEach: 2,
indexes: [Object],
[Symbol(isClean)]: true,
[Symbol(my)]: true
},
source: { start: [Object], input: [Input], end: [Object] },
selector: ':root',
lastEach: 2,
indexes: {},
[Symbol(isClean)]: true,
[Symbol(my)]: true
}
}