reactjs - 继续失败,错误为 "Browserslist: caniuse-lite is outdated "

标签 reactjs azure

我正在使用 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好几次了,但它一直向我发送运行失败的消息。

and here is the entire error image

最佳答案

对于所有面临这个问题的人来说, 查看这篇文章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/

相关文章:

node.js - NODE - 其他东西已经在端口上运行

python - 如何安装CVXPY/SCS与GPU一起使用?

azure - Powershell 中的 Set-AzureRmWebApp 更改未出现在 Azure 门户中

azure - 服务器无法验证请求。确保授权 header 的值格式正确,包括签名

azure-cli 登录获取 "self signed certificate in certificate chain"

javascript - Material UI Chip 十字按钮/删除按钮不起作用

reactjs - 使用 React.js 设置 useContext 和 useState 的正确方法?

javascript - 如何重新渲染 React 组件中已删除的子 DOM 元素?

javascript - 如何在 React js 中删除 Web 应用程序 cookie

Azure Blob 存储 - 自动生成唯一的 Blob 名称