title: You may need an appropriate loader to handle this file type-error
body: <p>I have the following code (es6 spread Attribute):</p>
  
  <pre><code> return {...state, name: action.payload};
  </code></pre>
  
  <p>The error thrown is: <em>You may need an appropriate loader to handle this file type.</em></p>
  
  <p><strong>package.json</strong></p>
  
  <p><a href="https://i.stack.imgur.com/szGIS.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/szGIS.png" alt="enter image description here"></a></p>
  
  <p>What else do I need to install in order to make this work. All the other ES6 is working but the spread attribute isn't. </p>
  
  <p><strong>webpack.config.js</strong></p>
  
  <p><a href="https://i.stack.imgur.com/ktDCd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ktDCd.png" alt="enter image description here"></a></p>