遇到错误:无法加载配置文件"react-app"以进行渲染我的React应用程序
P粉463291248
P粉463291248 2023-08-13 20:07:00
0
1
467
<p>每次渲染我的React应用程序时,我都会遇到以下错误:</p> <p>[eslint] 无法加载配置“react-app”以进行扩展。</p> <p>这是我的React Web应用程序的package.json文件:</p> <pre class="brush:php;toolbar:false;">{ "name": "monstors-rolodex", "version": "0.1.0", "private": true, "dependencies": { "@testing-library/jest-dom": "^5.17.0", "@testing-library/react": "^13.4.0", "@testing-library/user-event": "^13.5.0", "react": "^18.2.0", "react-dom": "^18.2.0", "react-scripts": "5.0.1", "web-vitals": "^2.1.4" }, "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject" }, "eslintConfig": { "extends": [ "react-app", "react-app/jest" ] }, "browserslist": { "production": [ ">0.2%", "not dead", "not op_mini all" ], "development": [ "last 1 chrome version", "last 1 firefox version", "last 1 safari version" ] }, "devDependencies": { "eslint-config-react": "^1.1.7" } }</pre> <p>有人能帮忙解决这个错误吗?</p>
P粉463291248
P粉463291248

全部回复(1)
P粉574695215

你可以尝试这样做:

yarn add eslint-config-react-app -D
热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责声明 Sitemap
PHP中文网:公益在线PHP培训,帮助PHP学习者快速成长!