postcss-pxtorem使用方法:https://www.cnblogs.com/liangziaha/p/13636936.html

 

这里报错 postcss-pxtorem 需要 8. 我以为要使用postcss-pxtorem 8.以上的版本就去看了一下postcss-pxtorem版本最高才6.0

react 运行报错 Error: PostCSS plugin postcss-pxtorem requires PostCSS 8.

 

 

这里降低  postcss-pxtorem@5.1.1

npm i postcss-pxtorem@5.1.1

 

再次运行npm start 就可以了 

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-29
  • 2021-10-17
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案