-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
fix: check hoisted postcss version #6372
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
Conversation
This reverts commit 27b4263.
`please run ${chalk.cyan('npm i postcss@8 -D')} to fix it.` | ||
) | ||
} | ||
|
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.
What if hasPostCSSConfig
is true
?
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.
That means the user is not likely using the built-in autoprefixer
plugin.
In that case, they should take care of the peer dependency requirements of their own installed plugins.
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.
Projects created by Vue CLI < 4.1.0 may have a PostCSS configuration (which only adds autoprefixer
) but no direct dependency installed. That's a bad practice. We can implement a migrator to help remove these configurations.
Reverts #6358