I ran into this bug, but I didn't need to update the babel dependencies, I just added this to the babel.config.js:
env: { development: { plugins: [['@babel/plugin-transform-react-jsx', { runtime: 'classic' }]], }, },