Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

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

Closed
vivmagarwal opened this issue Oct 21, 2018 · 4 comments
Closed

Comments

@vivmagarwal
Copy link

vivmagarwal commented Oct 21, 2018

@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
Copy link
Author

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

@djviy
Copy link

djviy commented Nov 6, 2018

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

What did you do to resolve the issue?

@vivmagarwal
Copy link
Author

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
Copy link
Collaborator

1Marc commented Nov 6, 2018

There's a more thorough explanation of how to debug here: #3 (comment)

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants