react 打包 yarn run build 时 报错 failed to minify the code this file
导读:react yarn run build打包时,报错:failed to minify the code this file: ./node_modules/asn1.js/lib/asn1/base/node.js:282如图:导致的原因...
react yarn run build打包时,报错:
failed to minify the code this file: ./node_modules/asn1.js/lib/asn1/base/node.js:282
如图:

导致的原因:"crypto-js"插件版本过高,导致语法抽象树打包编译时报错 解决办法:将 "crypto-js"降低版本即可
降级了cnpm i crypto-js@3.1.9-1 -S 即可,一般nodejs项目打包报这个错误,大概率就是包的版本问题。
声明:本文内容由网友自发贡献,本站不承担相应法律责任。对本内容有异议或投诉,请联系2913721942#qq.com核实处理,我们将尽快回复您,谢谢合作!
若转载请注明出处: react 打包 yarn run build 时 报错 failed to minify the code this file
本文地址: https://pptw.com/jishu/557865.html