title: AuthError - Error: Amplify has not been configured correctly
body: <p>First I have successfully completed configuring my react application using <code>amplify configure</code>. I did that with the help of <a href="https://docs.amplify.aws/cli/start/install" rel="noreferrer">AWS Amplify docs</a>. Then I have successfully added authentication to my amplify project, using <code>amplify add auth</code> and <code>amplify push</code>. I followed all the steps in the <a href="https://docs.amplify.aws/lib/auth/getting-started/q/platform/js" rel="noreferrer">AWS - Authentication with Amplify Doc</a></p>
  <p>My <code>App.js</code> looks like this,</p>
  <pre><code>import React from 'react';
  import { withAuthenticator, AmplifySignOut } from '@aws-amplify/ui-react';
  import Amplify, { Auth } from 'aws-amplify';
  import awsconfig from './aws-exports';
  
  Amplify.configure(awsconfig);
  
  
  const App = () =&gt; (
      &lt;div&gt;
          &lt;AmplifySignOut /&gt;
          My App
      &lt;/div&gt;
  );
  
  export default withAuthenticator(App);
  </code></pre>
  <p>But when I try <code>npm start</code>, it shows the following error,
  <a href="https://i.stack.imgur.com/sn4YS.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/sn4YS.jpg" alt="AuthError - Error: Amplify has not been configured correctly." /></a></p>