title: Uncaught SyntaxError: Unexpected token export
body: <p>I have used <strong>create-react-app</strong> for my project. I am getting an error of </p>
  
  <blockquote>
    <p>Uncaught SyntaxError: Unexpected token export</p>
  </blockquote>
  
  <p>The error is in this code </p>
  
  <pre><code>export const ENGLISH = {
    lang: 'en',
    messages: {
        'nav.translatedMessage': 'Social',
    }
  };
  </code></pre>
  
  <p>I tried installing babel-preset-es2015 and babel-preset-stage-0. Also i included the babel dict/object in package.json as </p>
  
  <pre><code>"babel": {
      "presets": [
        "es2015",
        "stage-0"
      ]
    },
  </code></pre>
  
  <p>I am still getting an error. </p>
  
  <p><a href="https://i.stack.imgur.com/rVARt.png" rel="noreferrer"><img src="https://i.stack.imgur.com/rVARt.png" alt="enter image description here"></a></p>