-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
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
[v2.0.0-alpha.71] Error: PostCSS plugin autoprefixer requires PostCSS 8. #4378
Comments
Same issue here on upgrading from 2.0.0-alpha.70 to 2.0.0-alpha.71 this morning. |
Thanks for reporting, make sense. Also using npm @lukewhyte ? |
@slorber Yep, with npm |
One note that is mostly unrelated, I was chasing down some other issues with Theme component resolutions (the live codeblock wasn't correctly taking over) and it turns out the solution ended up being for me to use lerna hoisting, so I think it's possible Yarn workspaces are hiding some interactions and behaviors. |
the problem looks a bit similar to #3515 Was wondering if any of you had a public repo so that we can at. least reproduce this somewhere? Apparently, this does not happen on newly initialized apps so it's hard for us to do anything without a repro. @dcousineau-godaddy you are using lerna but npm6 which does not support workspaces? |
@slorber I am also running into this. But weirdly not on alpha.71, but when upgrading to alpha.72. The repo is publicly available here: stryker-mutator/stryker-mutator.github.io#251. Npm and no Lerna. It looks like |
upgrade |
@slorber sorry I missed the notification (I need to turn on my github notifications for this account) Correct, this is I don't have a public repo, but I can see if I can make a replication. |
As @Sleaf mentioned, I upgrade |
I don't use |
Closing as aloha 75 is using postcss 8 |
🐛 Bug Report
I upgraded our internal documentation site to v2.0.0-alpha.71 (from alpha.69) and started receiving several errors along the lines of:
I believe it's related to the upgrade to
autoprefixer@10
from #4355 (asautoprefixer@10
requires postcss 8). Checking my package-lock.json's (I run a similar monorepo to this official docusaurus monorepo)@docusaurus/core
correctly pulls inautoprefixer@10
andpostcss@8
. However it looks like@docusaurus/cssnano-preset
and@docusaurus/theme-classic
all wantpostcss@7
I think the solution is to coordinate the postcss upgrades across the other packages e.g. https://github.com/facebook/docusaurus/blob/master/packages/docusaurus-cssnano-preset/package.json#L17
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
I believe part of my issue is I'm using
npm
and notyarn
, so it might be possible to reproduce by setting up a Docusaurus website using npm. I don't have time right now to build a reproduction use case.Expected behavior
Clean build.
Actual Behavior
Build errors.
Your Environment
Reproducible Demo
n/a, see above "To Reproduce"
The text was updated successfully, but these errors were encountered: