Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

JavaScript jQuery Basics (2014) Introduction to jQuery Include jQuery in a Project

Andrews Ferreira Guedis
Andrews Ferreira Guedis
5,633 Points

error in precompile test

My answer is:

<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

before the js/app.js, but I received a error. Bummer, error in precompile test.

index.html
<!DOCTYPE html>
<html>
<head>
    <title>Take Evasive Action</title>
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" title="no title" charset="utf-8">

</head>
<body>
    <p class="warning">
      <span>It's A Trap!</span>
    </p>
    <div class="image">
        <img src="img/ackbar.gif">
    </div>

    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  <script src="js/app.js" type="text/javascript" charset="utf-8"></script>
</body>
</html>

4 Answers

Jay Padzensky
Jay Padzensky
4,731 Points

Hi folks!

Good news, everyone! I've heard back from our developers that this Code Challenge should now be fixed! Thanks so much for your patience and efforts!

Michael Liendo
Michael Liendo
15,326 Points

Your code is from google's CDN but the challenge asks for the file sourced from code.jquery.com

Before you head there though, I tried to find the right version for you and currently no (uncompressed or minified) versions are passing.

Andrews Ferreira Guedis
Andrews Ferreira Guedis
5,633 Points

Michael,

Thank you for helping me. I tryed again with <script src="http://code.jquery.com/jquery-1.12.4.min.js"></script>, but didn't work. The same error, "Bummer! Error in precompile test".