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

Upgrade postcss to 8 #293

Open
winston0410 opened this issue Nov 25, 2020 · 3 comments
Open

Upgrade postcss to 8 #293

winston0410 opened this issue Nov 25, 2020 · 3 comments

Comments

@winston0410
Copy link

I hope this plugin could upgrade its PostCSS version to 8, which is needed for many plugins and it is backward compatible with PostCSS 7

Repository owner deleted a comment from birdofpreyru Nov 26, 2020
@gajus
Copy link
Owner

gajus commented Nov 26, 2020

Contributions are welcome.

@mikkpokk
Copy link

This ticket needs to be high priority already. Very many packages are migrated to postcss 8 but babel-plugin-react-css-modules are the one which resists to apply those upgrades.

Because of that, many projects have to continue using old vulnerable packages.

Of course I can help upgrading the module, but I believe there are many other contributors who are able to done the job faster since they know under-the-hood of the plugin.

https://evilmartians.com/chronicles/postcss-8-plugin-migration

@aaabinbin
Copy link

aaabinbin commented Jan 11, 2022

I have the same pro, I use postcss-nested & less but error

plugins: [
    [
      'react-css-modules',
      {
        filetypes: {
          '.less': {
            syntax: 'postcss-less',
            plugins: ['postcss-nested'],
          },
        },
        autoResolveMultipleImports: true,
        webpackHotModuleReloading: true,
        exclude: 'node_modules',
        generateScopedName: process.env.NODE_ENV === 'development' ? '[local]_[hash:base64:6]' : '[hash:base64:6]'
      },
    ],
  ],
error: PostCSS plugin postcss-nested requires PostCSS 8
/node_modules/babel-plugin-react-css-modules/node_modules/postcss/lib/processor.es6:117:15

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

No branches or pull requests

4 participants