1.清除原先的node_modules:
2.重装node_modules3.把package.json里面的"react-scripts": "2.1.8",改为这个版本
4.接着会报错App.js回报错'React' must be in scope when using JSX react/react-in-jsx-scope
5.在app.js引入import React,{ Component } from "react"即可
1.清除原先的node_modules:
2.重装node_modules3.把package.json里面的"react-scripts": "2.1.8",改为这个版本
4.接着会报错App.js回报错'React' must be in scope when using JSX react/react-in-jsx-scope
5.在app.js引入import React,{ Component } from "react"即可