title: reactjs universal-cookie package error when calling get()
body: <p>I have the following two components. They are in separate .js files.</p>
  <pre><code>import Cookie from 'universal-cookie'
  class Comp1{
  
     someFunction(){
        // Call google Oauth
        // get userinfo from Oauth response and set the token below
        var cookie = New Cookie();
        cookies.set('user', user, { path: '/' })
        this.props.history.push('/Comp2')
        window.location.reload()
     }
  
  }
  </code></pre>
  <p><em>---------------------------------------------------------</em></p>
  <pre><code>import cookie from 'universal-cookie'
  class Comp2{
  
     anotherFunction(){
         var user = cookie.get('user');
     }
  
  }
  </code></pre>
  <p>The second component throws the following error:</p>
  <pre><code>TypeError: universal_cookie__WEBPACK_IMPORTED_MODULE_4__.default.get is not a function
  </code></pre>
  <p>How do I resolve it?</p>
  <p>UPDATE: google oauth flow</p>