[Solved] Error: postcss plugin autoprefixer requires postcss 8 error report problem repair

I was writing the latest project of vue3.0. Once I deleted the node_modules package and reinstalled it, the terminal appeared Error: PostCSS plugin autoprefixer requires PostCSS 8.

Solution: set autoprefixer to 9.0.0:

"autoprefixer": "9.0.0",

Read More: