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 trialtjeiosajfdksl
Courses Plus Student 8,981 Pointsneed help with app.js not loading
I get this error message in the console : Failed to load resource: the server responded with a status of 404 (Not Found). I am expexting to get the message as per the video. Here is the code
```<!DOCTYPE html> <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>RSVP App</title> <link href="https://fonts.googleapis.com/css?family=Courgette" rel="stylesheet"> <link href="https://fonts.googleapis.com/css?family=Lato:400,700" rel="stylesheet"> <link href="css/style.css" rel="stylesheet"> </head> <body> <div class="wrapper"> <header> <h1>RSVP</h1> <p>A Treehouse App</p> <form id="registrar"> <input type="text" name="name" placeholder="Invite Someone"> <button type="submit" name="submit" value="submit">Submit</button> </form> </header>
<div class="main">
<h2>Invitees</h2>
<ul id="invitedList"></ul>
</div>
</div> <script src="app.js"></script> </body> </html>
then app.js code . ```console.log('hi from app.js');```
2 Answers
tjeiosajfdksl
Courses Plus Student 8,981 Pointshi, sorry please ignore. I solved it now problem was with the reference to folder
I changed : <script src="app.js"></script> to <script src="css/app.js"></script> then it worked
Barry Cantrell
68 PointsOh. I see. The app.js file could not be found. This is the resource that could not be loaded.