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

后端 未结 10 2561
夕颜
夕颜 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:24

    create .env file in your project file and add the following statement

    SKIP_PREFLIGHT_CHECK=true
    

    Save the file

    Remove node_modules, yarn.lock, package.lock

    Then reinstall node_modules with

    npm install
    

    This should work

提交回复
热议问题