Rarible Clone - Error When Clicking On Buttons

HelIo, I have completed the tutorial and have run into some issues with the styled version. When I click on the buttons My Items, Create, and Profile,

I get these errors:

They correspond to the lines

$('#userInfo').modal('show');
$('#userItems').modal('show');
$('#createItem').modal('show');

Would anyone be able to provide any insight as to why I am coming across these error messages?

Thank you.

Hey @euca

It is difficult for me to understand about which tutorial you asked and which syntax you are using.
For me, it looks like this is jQuery. Make sure you preloaded all the extensions in your head.
For example:

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.min.js"></script>

If that doesn’t help, please send me the full code of the page. :nerd_face:

1 Like

Thank you @Yomoo, that was the solution. I am working on the Rarible Clone tutorial. I put the script at the end of the body and it works, does it matter if it isn’t in the head?

You are welcome! :muscle:

Putting a links to scripts in <head> is a generally accepted standard.

1 Like