btholt / complete-intro-to-react-v4

The Complete Intro to React, as given for Frontend Masters
https://frontendmasters.com/learn/react/
1.14k stars 248 forks source link

Issue with petfinder API client `Uncaught SyntaxError: Unexpected token <` #13

Closed vivmagarwal closed 6 years ago

vivmagarwal commented 6 years ago

@btholt Console gives following Error:

Uncaught SyntaxError: Unexpected token <

After these lines of code executes:

  componentDidMount() {
    petfinder.breed.list({ animal: "dog" }).then(console.log, console.error);
  }

Regarding : https://frontendmasters.com/courses/complete-react-v4/using-the-petfinder-api-client/

vivmagarwal commented 6 years ago

Looks like, it's working now. Thanks!!

djviy commented 5 years ago

Looks like, it's working now. Thanks!!

What did you do to resolve the issue?

vivmagarwal commented 5 years ago

Looks like, it's working now. Thanks!!

What did you do to resolve the issue?

I think I restarted the server. In the terminal ctrl+c to stop it then Yarn+start to re-run it...

1Marc commented 5 years ago

There's a more thorough explanation of how to debug here: https://github.com/btholt/complete-intro-to-react-v4/issues/3#issuecomment-425124265