postcss-pxtorem icon indicating copy to clipboard operation
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".

Open wx995405425 opened this issue 4 years ago • 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

wx995405425 avatar Apr 23 '21 15:04 wx995405425

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

wx995405425 avatar Apr 23 '21 16:04 wx995405425

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

wx995405425 avatar Apr 23 '21 16:04 wx995405425

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

cuth avatar Apr 23 '21 19:04 cuth

@cuth It works。Thanks

wx995405425 avatar Apr 24 '21 02:04 wx995405425

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.

LiZhaji avatar Jun 05 '21 08:06 LiZhaji

PostCSS plugin postcss-pxtorem requires PostCSS 8.

image

xiaoyang678 avatar Aug 04 '21 16:08 xiaoyang678

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

xxwangkaimin avatar Apr 06 '22 03:04 xxwangkaimin