Failed to start project
iksent opened this issue · comments
yarn start
produces next error:
...\node_modules\react-app-rewire-hot-loader\index.js:28
getBabelLoader(config).options.plugins.push(plugin);
^
TypeError: Cannot read property 'options' of undefined
My files:
package.json:
"devDependencies": {
"react-app-rewire-hot-loader": "^2.0.1",
"react-app-rewired": "1.6.2", // Also tried with 2.1.1 - same error
"react-hot-loader": "^4.8.2",
},
"scripts": {
"start": "react-app-rewired start",
"build": "react-app-rewired build",
"test": "react-app-rewired test --env=jsdom",
"eject": "react-scripts eject",
...
config-overrides.js:
const rewireReactHotLoader = require('react-app-rewire-hot-loader')
/* config-overrides.js */
module.exports = function override (config, env) {
config = rewireReactHotLoader(config, env)
return config
}
I have no babel.config.js and .babelrc
I have the same problem
works perfectly with
"react-app-rewired": "2.1.5",
"react-hot-loader": "4.12.17"
& config-overrides.js
const rewireReactHotLoader = require('react-app-rewire-hot-loader')
/* config-overrides.js */
module.exports = function override(config, env) {
config = rewireReactHotLoader(config, env)
return config
}