Problems with babel loader in react-create-app

后端 未结 11 1434
孤城傲影
孤城傲影 2021-02-18 16:50

The Problem

create-react-app initializes a repository where babel-loader is installed as an older version than needed.

LOG:

There          


        
11条回答
  •  没有蜡笔的小新
    2021-02-18 17:38

    I have also problems after creating an app-project using the following commands:

    create-react-app "project name"
    create-react-app "project name" --use-npm
    npx create-react-app. 
    

    On all cases the result was the error specified right in the top:

    [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.......][...]

    watching on the error a line came with a small clue:

    "/Users/john/node_modules/babel-loader (version: "7.1.5") -> was a version that creates conflict with above specified - version "babel-loader@8.0.6"

    for me the solution was: following this path through my folders and delete the node_modules folder then restart again the project.

提交回复
热议问题