Open benshine opened 6 years ago
This seems related to the deprecation of babel-preset-latest.
Try do this:
1) create in your root project folder file .babelrc
and put presets configuration like this
{
"presets":["react", "es2015"]
}
2) npm i -save-dev babel-preset-react babel-preset-es2015
3) Put this as babel-loader configuration:
{
test: /\.js?$/,
exclude: /(node_modules)/,
loader: 'babel-loader'
}
4) recompile you bundle.js (or how did you call it)
From a clean clone of this repo, the ch14 example fails at
npm start
: ben-15:redux-netflix ben$ npm startThis seems related to the deprecation of babel-preset-latest.
I tried to resolve by switching to babel-preset-env as instructed in http://babeljs.io/env , but i am not yet skilled at webpack config.