i keep getting the error:
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Duplicate plugin/preset detected.
If you'd like to use two separate instances of a plugin,
they need separate names, e.g.
plugins: [
['some-plugin', {}],
['some-plugin', {}, 'some unique name'],
]
this is my babelrc with the changes it is asking for:
{
"presets": [
["@babel/env"],
["@babel/preset-react"]
],
"plugins": [
["@babel/plugin-syntax-jsx"],
["@babel/plugin-transform-react-jsx"],
["@babel/plugin-transform-react-display-name"],
["@babel/plugin-transform-react-jsx-self"],
["@babel/plugin-transform-react-display-name"]
]
}
Not really sure where i have the wrong syntax for the file. Also this is my first time configuring webpack4 with babel for a react application. Please let me know if everything looks fine for this to work with react.