cuth/postcss-pxtorem

when I run: yarn add postcss-pxtorem, I get a warning " > postcss-pxtorem@6.0.0" has unmet peer dependency "postcss@^8.0.0".

Opened this issue · 7 comments

This is my project`s package.json.
image

The waning
image

This is this postcss-pxtorem`s package.json
image

This is this postcss`s package.json
image

@cuth How to solve this problem? Do you need to modify the source code?

postcss is built in vite. I don't want to reinstall postcss.

cuth commented

Try adding Postcss to the package.json of your project.

@cuth It works。Thanks

Help.
I got the same problem when running with npm: Syntax Error: Error: PostCSS plugin postcss-pxtorem requires PostCSS 8.
And then I add postcss v8.3.0 to the package.json, but it does't work.

PostCSS plugin postcss-pxtorem requires PostCSS 8.

image

I downloaded postcss-pxtorem@lastest,postcss@lastest,postcss-loader@lastest,But still report an error.