Problems with babel loader in react-create-app

后端 未结 11 1217
孤城傲影
孤城傲影 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条回答
  •  -上瘾入骨i
    2021-02-18 17:28

    You can momentarily downgrade react-scripts to 1.1.5 in the package.json file, then remove the node_modules folder and in the case of using NPM delete the package-lock.json file and in case Yarn delete the file yarn.lock. After that, reinstall the dependencies and start the development server with the yarn start or npm run start command.

提交回复
热议问题