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

Jonathan Grieve
MOD
Jonathan Grieve
Treehouse Moderator 91,253 Points

Almost completed the Angular Basics Course. But there's a compiler error

I'm getting an error that I'm not sure how to fix. Here's a link.

http://www.jonniegrieve.co.uk/jg-lab.co.uk/treehouse/sites/todos/

All I'm getting at the moment is a compiler error but doesn't seem to link to the problem, only to Angular itself.

Error: [$compile:tpload] http://errors.angularjs.org/1.5.0-beta.2/$compile/tpload?p0=templates%2Ftodos.html&p1=404&p2=Not%20Found
    at Error (native)   angular.min.js:111```

would anyone have any idea how to fix this? I've completed the course but I didn't really know how to fix the error. Have followed all the coding. Thanks

1 Answer

From what I see in the console. The templates folder and todos.html does not exist. Are you sure you have uploaded those files on your server?

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

That's odd. They exist on both my local server and web server, so don't think it's that. But thanks. :-)

This is the response i get when I try to locate your todos.html template

Not Found

The requested URL /jg-lab.co.uk/treehouse/sites/todos/templates/todos.html was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

http://www.jonniegrieve.co.uk/jg-lab.co.uk/treehouse/sites/todos/templates/todos.html

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

Okay... Fixed the problem with the todos.html. It was included in the scripts folder which i needed to link to.

All that remains is for me to finish getting the text box to go into editing mode when i click it. Code is correct but it's not doing it. :o

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

The interesting thing now is it's injecting 2 versions of the UI. Each of them updates the values of the todo's on both versions. On the top, todo's don't go into editing mode when you click on the label. On the one on of the bottom, it does. I have no clue why it's doing that.