stylelint: TypeError: Cannot read property 'stringify' of null
TypeError: Cannot read property 'stringify' of null at Root.toString (/Users/urs/mywork//node_modules/postcss/lib/node.js:193:21) at /Users/user/mywork/node_modules/stylelint/lib/standalone.js:257:44 at async Promise.all (index 0)
when you run stylelint --fix “filename” rollback to 11.1.1 the problem go away.
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Reactions: 7
- Comments: 15 (9 by maintainers)
Do not use
stylelint-processor-styled-components, it is deprecatedDo we have any updates on this? Older versions of
stylelintcontain vulnerabilities, so rollback is not an option here 😕In case it helps anyone. I resolved the same problem by installing
"postcss": "^8.4.17",as a direct dependency.EDIT: Apologies, I got it working without stylelint-processor-styled-components by just wiping my node_modules and yarn.lock file. Must have been a missing package.
Could I re-open this issue please?
Removing
stylelint-processor-styled-componentsproduces the following type of error for all plugins:Could not find "stylelint-config-standard". Do you need a configBasedir?: E.g. https://github.com/AtomLinter/linter-stylelint/issues/68Using
stylelint-processor-styled-componentsproduces the above TypeError:TypeError: Cannot read property 'stringify' of null at Root.toString@evilebottnawi do you have a recommendation on what to do to use stylelint with styled components properly? Or is currently impossible to use stylelint with styled components due to the postcss-jsx issue?
Please, use issue template, otherwise we can’t help you.