Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix postcss-scss module resolution when other postcss versions are present #87

Closed
tom-ricci opened this issue Nov 19, 2021 · 0 comments
Closed

Comments

@tom-ricci
Copy link
Contributor

Due to a bug with dependency resolution, when multiple versions of the postcss package are present, this config will fail to load postcss-scss. Normally this isn't an issue, but there are still cases where other postcss versions are needed (for example create-react-app 4 doesn't support postcss 8).

Based on stylelint/stylelint#5632 (comment), a fix should be made as such in index.js:

- customSyntax: 'postcss-scss',
+ customSyntax: require('postcss-scss'),

Eventually once the postcss community moves on from postcss 7, this should be okay to remove.

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

No branches or pull requests

2 participants