title: VM892:1 Uncaught SyntaxError: Unexpected token e in JSON at position 0
body: <p>I'm presently working on a phx / phoenix API written in Elixir.  And I have created a frontend for the API using React.js.  However, I'm getting the below error message in the JS console of the browser.</p>
  
  <p>I have successfully created a user using Postman, so I'm 99% sure the error isn't with the phx project, but rather somewhere with the React project.</p>
  
  <p>I have both the <a href="https://github.com/ipatch/kegcopr-frontend" rel="nofollow noreferrer">frontend</a> and <a href="https://github.com/ipatch/kegcopr_api" rel="nofollow noreferrer">backend</a> hosted on github.  And a <code>.env</code> file will need to be created in the root of the React project with the below line,</p>
  
  <pre><code>REACT_APP_API_URL=http://localhost:4000/api
  </code></pre>
  
  <p>and was working my way through the <a href="https://medium.com/@benhansen/lets-build-a-slack-clone-with-elixir-phoenix-and-react-part-1-project-setup-3252ae780a1" rel="nofollow noreferrer">following tutorial</a>.</p>
  
  <p>Any and all help would greatly be appreciated.</p>
  
  <p><a href="https://i.stack.imgur.com/G47YU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/G47YU.png" alt="error message"></a> </p>