美文网首页
react 运行报错 Error: PostCSS plugin

react 运行报错 Error: PostCSS plugin

作者: 小李不小 | 来源:发表于2021-08-12 09:16 被阅读0次

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

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


    image.png

    这里降低 postcss-pxtorem@5.1.1

    npm i postcss-pxtorem@5.1.1
    

    再次运行npm start 就可以了

    相关文章

      网友评论

          本文标题:react 运行报错 Error: PostCSS plugin

          本文链接:https://www.haomeiwen.com/subject/pfvejltx.html