...
- npx babel-upgrade --write
- this command scans through your configs and realigns the versions
- npm install babel-loader@7.1.4
- change the installed version to 7.1.4
- npm install babel-core
- installs the latest version of babel-core 6.26.3
- npm install babel-preset-env
After the following above, we still had problems with version 7. We went back to using create-react-app <app name>. Before running this app run the command
npm install -g create-react-app
This works fine and then you can modify the app.js accordingly.