# npm audit report
nth-check <2.0.1
Severity: high
Inefficient Regular Expression Complexity in nth-check - https://github.com/advisories/GHSA-rp65-9cf3-cjxr
fix available via `npm audit fix --force`
Will install react-scripts@2.1.3, which is a breaking change
node_modules/svgo/node_modules
,,这就是我得到的!!
PS C:\My Files\Software Development\netflix-clone> npx create-react-app ./
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Creating a new React app in C:\My Files\Software Development\netflix-clone.
npm WARN config global `--global`, `-
我弹出了CRA来做一些配置。
我的问题是svg不能解析相对路径。
我在我的webpack配置中的配置如下:
// Process application JS with Babel.
// The preset includes JSX, Flow, and some ESnext features.
{
test: /\.(js|mjs|jsx)$/,
include: paths.appSrc,
loader: require.resolve('babel-loader'),
我想使用与的创建-反应-应用程序,我使用添加svgr到Webpack的配置。
当前,每当SVG被呈现时,都会引发以下错误:
Failed to execute 'createElement' on 'Document': The tag name provided ('static/media/googlelogo.03ad8507.svg') is not a valid name.
我的craco.config.js:
const CracoAlias = require("craco-alias");
module.exp
我试图让同样的进口陈述同时适用于Vite和Webpack的设置(由童话簿使用),而且我无法让它像广告中所宣传的那样为Webpack工作。
根据的说法,这应该是可行的:
// Does not work (undefined)
import {ReactComponent as UilPlus} from '@iconscout/unicons/svg/line/plus.svg'
但事实并非如此。只有default导出:
// Works
import UilPlus from '@iconscout/unicons/svg/line/plus.svg'
我怎
因此,我和一些同事一起做了一个反应项目,我得到了“发现87个漏洞(82个中度,5个高度)”,现在我做了一个审计修复,结果是:
browserslist 4.0.0 - 4.16.4
Severity: moderate
Regular Expression Denial of Service - https://npmjs.com/advisories/1747
fix available via `npm audit fix --force`
Will install react-scripts@1.1.5, which is a breaking change
node_modules/
我正在尝试创建一个React应用程序。以下是Node &NPM的版本: C:\React>node -v
v15.2.0
C:\React>npm -v
7.0.8 当我运行命令创建React应用程序时,出现以下消息: C:\React>npx create-react-app my-app
Creating a new React app in C:\React\my-app.
Installing packages. This might take a couple of minutes.
Installing react, react-dom, and