The react-scripts package provided by Create React App requires a dependency:

后端 未结 10 2554
夕颜
夕颜 2021-02-18 14:12

There might be a problem with the project dependency tree. It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package p

相关标签:
10条回答
  • 2021-02-18 14:39

    Delete your eslint and babel-eslint file from your node modules on your computer e.g. -C:\Users\vishnu\node_modules -delete eslint and babel-eslint file.

    In your project:

    yarn remove eslint
    yarn add --dev eslint@6.1.0
    
    yarn remove babel-eslint
    yarn add --dev babel-eslint@10.0.3
    
    0 讨论(0)
  • 2021-02-18 14:41

    Run npm ls babel-eslint and see which dependencies are using it or installing another version. Try updating those libraries.

    It worked for me.

    0 讨论(0)
  • 2021-02-18 14:45

    in package.json

    resolutions:{
        "babel-eslint": "9.0.0"
    }
    

    if you reinstall your all dependencies, you will be forcing "babel-eslint" to be version "9.0.0". if you start your app, you will have no issue.

    0 讨论(0)
  • 2021-02-18 14:46

    I just deleted the node_modules folder (for me it was C:\user\[yourUserName]\node_modules\) and re-installed it.

    0 讨论(0)
提交回复
热议问题