我正在使用Azure static Web Apps托管我的React网站。
我一直在面对下面的错误。
yarn run v1.22.10
$ react-scripts build
Creating an optimized production build...
Browserslist: caniuse-lite is outdated. Please run:
npx browserslist@latest --update-db
Treating warnings as errors because process.env.CI = true.
Most CI servers set it automatically.
Failed to compile.我已经尝试了几次npx browserslist@latest --update-db,但它一直向我发送运行失败的消息。
发布于 2021-06-06 16:05:32
对于所有面临这个问题的人,请查看这篇文章Browserslist: caniuse-lite is outdated #1184
使用npm i npm-update-all -g更新所有过期文件可以解决此问题
发布于 2021-10-25 08:07:49
我在我的Vue App.And中也遇到了同样的问题,yarn upgrade帮了我很多忙。
https://stackoverflow.com/questions/67856854
复制相似问题