There are a few answers that provide solutions with react-app-rewired, but customize-cra exposesincludes a special removeModuleScopePlugin() API which is a bit more elegant. (It's the same solution, but abstracted away by the customize-cra package.)
npm i --save-dev react-app-rewired customize-cra
package.json
"scripts": { - "start": "react-scripts start" + "start": "react-app-rewired start", ... }, config-overrides.js
const { removeModuleScopePlugin } = require('customize-cra') module.exports = removeModuleScopePlugin()