postcss-custom-properties
postcss-custom-properties copied to clipboard
Error if no previous rule or declaration exists
Error is thrown here when the rule
is undefined
:
https://github.com/postcss/postcss-custom-properties/blob/a250907b9ca0b336d6c0ca948a1db2fe2d145309/src/lib/is-ignored.js#L5
Fix should probably be implemented here to check if the rule exists before sending it to isBlockIgnored
.
https://github.com/postcss/postcss-custom-properties/blob/a250907b9ca0b336d6c0ca948a1db2fe2d145309/src/lib/is-ignored.js#L11
@jedmao could you provide css code example which generate this error?
Unfortunately, I don’t remember the scenario. Can’t believe I didn’t include that here. Sorry.