我正在使用 Azure 静态 Web 应用来托管我的 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
好几次了,但它一直向我发送运行失败的消息。
最佳答案
对于所有面临这个问题的人来说, 查看这篇文章Browserslist: caniuse-lite is outdated #1184
使用npm i npm-update-all -g
更新所有过时的文件可以解决此问题
关于reactjs - 继续失败,错误为 "Browserslist: caniuse-lite is outdated ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67856854/