Webpack Module build failed: SyntaxError: 'import' and 'export' may appear only with 'sourceType: module'
<p>I am using a mix of Webpack/Babel 6/React/eslint. based on the answers that I have seen, I have all of the required dependencies. My eslint config contains the following:</p>

<pre><code>"parserOptions": {
    "ecmaVersion": 6,
    "sourceType": "module",
    "ecmaFeatures": {
        "jsx": true,
        "experimentalObjectRestSpread": true,
        "modules": true
    }
}
</code></pre>

<p>I cannot seem to find a solution for this. Any ideas are welcome.</p>