Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Error if no previous rule or declaration exists #220

Open
jednano opened this issue Jun 3, 2020 · 2 comments
Open

Error if no previous rule or declaration exists #220

jednano opened this issue Jun 3, 2020 · 2 comments

Comments

@jednano
Copy link

jednano commented Jun 3, 2020

Error is thrown here when the rule is undefined:

return /(!\s*)?postcss-custom-properties:\s*off\b/i.test(rule.toString())

Fix should probably be implemented here to check if the rule exists before sending it to isBlockIgnored.

return Boolean(isBlockIgnored(rule) ||

@Semigradsky
Copy link
Member

@jedmao could you provide css code example which generate this error?

@jednano
Copy link
Author

jednano commented Sep 18, 2020

Unfortunately, I don’t remember the scenario. Can’t believe I didn’t include that here. Sorry.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants