【问题标题】:Failed to load config "react-app" to extend from无法加载配置“react-app”以从
【发布时间】:2021-10-11 13:33:03
【问题描述】:

我正在尝试通过

打开官方的redux todos示例项目
git clone https://github.com/reduxjs/redux
cd redux/examples/todos
npm install && npm start

但它给了我这个错误

Failed to load config "react-app" to extend from.
Referenced from: /home/myUserName/redux/.eslintrc.js

当我刷新时,我可以看到应用程序不到一秒钟,然后错误再次出现。

我在克隆后尝试了yarn install && yarn start,但没有区别。 我也试过yarn add eslint-config-react-app,还是没区别。

【问题讨论】:

    标签: reactjs react-redux eslint


    【解决方案1】:

    我的情况完全一样。 在您的文件夹中创建一个文件“.env”并添加一行

    SKIP_PREFLIGHT_CHECK=true
    

    到“.env”。它对我有用。

    跳过检查并不是很理想。 但现在应该没问题了:无论如何我们都在尝试运行一个示例。

    【讨论】:

    • ~/Desktop/redux/examples/todos$ cat .env 输出:SKIP_PREFLIGHT_CHECK=true 做到了,但不幸的是仍然不适合我。
    • 不会阻止它崩溃 npm run build。
    猜你喜欢
    • 2022-08-10
    • 2021-01-02
    • 1970-01-01
    • 2019-11-13
    • 2022-01-04
    • 1970-01-01
    • 1970-01-01
    • 2021-12-12
    • 2022-07-02
    相关资源
    最近更新 更多