-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
PostCSS plugin autoprefixer requires PostCSS 8. Update PostCSS or downgrade this plugin. #5160
Comments
The "Possible Solution" worked for me. |
i have the same issue downgrading the version to 9.8.6 fixed it |
The possible solution worked for me too. |
Your possible solution isn't working for me... |
Nevermind working now |
the same error |
same error and possible solution isn't working for me either |
Same problem except I'm using |
The Possible Solution also worked for me. |
mine problem is with your problem should be with |
PostCSS 8 is backwards compatible with version 7: #5152 (comment) |
autoprefixer doesn't |
This isn't a Parcel issue right? We don't have autoprefixer as a dependency... |
I mean, Parcel added post-css and whatnot, all I did (as per the documentation) was add a postcssrc like this:
Even though postcss was added @ 8.0.9 (by parcel I assume) I still get this error so something is off? |
The point is that if you use autoprefixer, you need to install explicitly it yourself, meaning you also control the version of autoprefixer which needs to be at downgrades as per |
@devongovett Parcel needs to update PostCSS to be able to use PostCSS 8 plugins |
downgrade autoprefixer to 9.8.6. Then it should work fine. |
Another option is a migration to Parcel 2, which use PostCSS 8 |
Cheers, downgrading it works |
The Possible Solution worked for me too. |
|
👍 why does this work? |
Hi, I just came across this error today, I'm not sure if it was |
It works because it's doing the same thing as explicitly installing an older version of Explicitly pinning I don't really know which solution is better, they will yield similar results (aside from other incompatibilities you may encounter) |
Hi, "autoprefixer": "9.0.0", |
I have this error when trying to build PostCSS plugin postcss-purgecss requires PostCSS 8 I have do all the fix found on tailwind website.. all to no avail |
Not sure why this issue is still open? There have been multiple suggested and valid solutions to this problem:
|
The latest Parcel 2 nightly doesn't seem to be pulling in PostCSS8 here. What am I missing?
|
@simonwiles You probably already had it installed, install postcss 8 manually and it should work |
@DeMoorJasper -- sorry, I should have made it clearer; this is in a completely new project, e.g.
Installing PostCSS 8 manually does allow |
@simonwiles Seems strange, if you could create a full example project where this happens preferably in a separate issue that would really help us to debug this. |
@simonwiles do you use latest Parcel 2 |
Yeah, I've been making sure to use I do want to solve the |
Issue filed: #5551 Thanks :) |
It requires postcss 8 but Parcel still uses an older one. parcel-bundler/parcel#5160
The following worked for me. Note that I also needed to downgrade the version of
|
In my case I was trying running a gatsby project, so I had that issue. The solution was downgrading postcss-pxtorem: |
I still get this issue even on parcel@next. 👎 |
any news ? Error: PostCSS plugin autoprefixer requires PostCSS 8. |
meant to avoid: ```sh ... Error: PostCSS plugin autoprefixer requires PostCSS 8. ... ``` redwoodjs#3515 (comment) parcel-bundler/parcel#5160
meant to avoid: ```sh ... Error: PostCSS plugin autoprefixer requires PostCSS 8. ... ``` redwoodjs#3515 (comment) parcel-bundler/parcel#5160
meant to avoid: ```sh ... Error: PostCSS plugin autoprefixer requires PostCSS 8. ... ``` redwoodjs#3515 (comment) parcel-bundler/parcel#5160
fix: pin `autoprefixer` meant to avoid: ```sh ... Error: PostCSS plugin autoprefixer requires PostCSS 8. ... ``` redwoodjs#3515 (comment) parcel-bundler/parcel#5160 chore: test using `yarn`'s `resolutions` see: https://stackoverflow.com/a/66825007
fix: pin `autoprefixer` meant to avoid: ```sh ... Error: PostCSS plugin autoprefixer requires PostCSS 8. ... ``` redwoodjs#3515 (comment) parcel-bundler/parcel#5160 chore: test using `yarn`'s `resolutions` see: https://stackoverflow.com/a/66825007
🐛 bug report
Error when running dev or build with Parcel.
🎛 Configuration (.babelrc, package.json, cli command)
.babelrc
package.json
🤔 Expected Behavior
Project should build without errors.
😯 Current Behavior
Full error message:
💁 Possible Solution
Downgrade Autoprefixer to:
"autoprefixer": "^9.8.6"
🔦 Context
Project was building successfully until after updating autoprefixer package.
💻 Code Sample
N/A
🌍 Your Environment
The text was updated successfully, but these errors were encountered: