-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
Update to PostCSS 8 #9716
Update to PostCSS 8 #9716
Conversation
Would be awesome if update to PostCSS 8 would be released with support for custom config #8907 🤞 |
hello has the issue with postCSS 8 on '' Create react app '' fix ? because am still getting errors when i run "npm run build ". 👇🏿👇🏿👇🏿👇🏿👇🏿👇🏿 C:\Users\cilium\Desktop\ebuka\webdev\tailwindCSS> npm run build
Error: PostCSS plugin autoprefixer requires PostCSS 8. npm ERR! A complete log of this run can be found in: |
Changes look good (approving), but the tests seem a bit broken? |
@clarkd it was some unrelated error, but for some reason log was already cleaned. Seems like PR review took too long for CI. |
@iansu is there a release date for the 4.0.2 milestone? |
The build was failing for me, updating the packages wasn't enough. I had to change the Webpack config to reflect postcss-loader changes, wrapping up some of the options in the {
// Options for PostCSS as we reference these options twice
// Adds vendor prefixing based on your specified browser support in
// package.json
loader: require.resolve('postcss-loader'),
options: {
postcssOptions: {
// Necessary for external CSS imports to work
// https://github.com/facebook/create-react-app/issues/2677
ident: 'postcss',
plugins: () => [
require('postcss-flexbugs-fixes'),
require('postcss-preset-env')({
autoprefixer: {
flexbox: 'no-2009',
},
stage: 3,
}),
// Adds PostCSS Normalize as the reset css with default options,
// so that it honors browserslist config in package.json
// which in turn let's users customize the target behavior as per their needs.
postcssNormalize(),
],
},
sourceMap: isEnvProduction ? shouldUseSourceMap : isEnvDevelopment,
},
}, |
@ianschmitz when do you plan to release it? I need to add instructions for PostCSS migration docs. |
@ai this doesn't work for me. still getting the error:
|
@JimLynchCodes ask CRA team. not me. They didn’t merged my PR and still do not have PostCSS 8 support #10003 |
@ianschmitz any news regarding this? |
Anyone else following this up? |
any news regarding this? |
I really hate to add to the noise but to answer the question of why this probably isn't released: webpack 5 support is being worked on as well (see pinned issue). I would imagine that they want to finish that before pushing a new version of react scripts so breaking changes are consolidated. |
When will this issue be fixed with CRA? |
released in v5 alpha |
@raix react-scripts 5? or webpack 5? this thread is about postcss 8 support in react-scripts |
CRA v5 (currently in alpha, the postcss 8 upgrade was a major version due to node 10 deprecation, therefor it was moved to v5, along webpack 5, node 10+12 deprecation etc.) |
are there any plans for this? |
Bump |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice
tailwindcss 3.0.0 is on postcss 8! Please support! |
Yes, please! Tailwindcss 3.0 requires postcss 8. |
Please support this for tailwindcss 3.0.0 |
Please support this must have! |
Tailwindcss 3.0.0 is on PostCSS 8! Please support! |
Please support PostCSS for TailwindCSS 3.0. |
We need PostCSS for TailwindCSS 3.0. Definitely need to support |
Please support PostCSS for TailwindCSS 3.0. |
To everyone coming here for Tailwind CSS / PostCSS support, the new version ( Read about the new version and how to upgrade here: https://github.com/facebook/create-react-app/releases/tag/v5.0.0 |
Fixed #9664
postcss-loader
4.0 moved PostCSS topeerDependencies