ember.js - Ember guides todomvc tutorial -


i following tutorial in ember guides copy/pasting code. when reach part of tutorial errors on reloading page including:

failed load resource file:///home/kwal0203/ember_development/ember_tutorial/js/libs/jquery.min.js
failed load resource file:///home/kwal0203/ember_development/ember_tutorial/js/libs/handlebars.js
assertion failed: ember views require jquery 1.7, 1.8, 1.9, 1.10, or 2.0 ember.js:394
assertion failed: ember handlebars requires handlebars version 1.0.0. include script tag in html head linking handlebars file before link ember. ember.js:394
uncaught typeerror: cannot read property 'compiler_revision' of undefined ember.js:23618
uncaught typeerror: cannot call method 'map' of undefined

any appreciated

it's clear why app not working, loading using file:// protocol. makes vital js files not load @ resulting in errors get.

failed load resource file:///home/kwal0203/ember_development/ember_tutorial/js/libs/jquery.min.js ... 

the simple solution problem serve app related files http:// protocol, can easy achieved using simple webserver. if setting webserver out of scope use online editor http://jsbin.com instead , load js libraries cdn, copy , paste code in online editor , should work correctly.

if have python installed on system, possibility have files served webserver following:

$ cd /home/kwal0203/ember_development/ember_tutorial/ $ python -m simplehttpserver 

now open browser , visit: http://localhost:8000

hope helps.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -