postcss-pxtorem
postcss-pxtorem copied to clipboard
when I run: yarn add postcss-pxtorem, I get a warning " > [email protected]" has unmet peer dependency "postcss@^8.0.0".
This is my project`s package.json.

The waning

This is this postcss-pxtorem`s package.json

This is this postcss`s package.json

@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.
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.

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