This is my first time trying to create an ember.js with ember-cli and I run into a little problem.
I followed this tutorial http://ift.tt/1qt2JSQ and when I launch the server (node.js by 'ember server' from terminal) I got Welcome to ember.js page. So I guess it works.
But if I get this right, ember.js should be able to run without any server, just inside a browser no? So how to 'export' this app and use it as static template in browser (my backend is developed in django, so I basiclly want the ember app will be a template).
I tried to use dist/index.html as template but when I open the page in browser, there is no welcome to ember.js and js console shows this errors:
vendor.js:1 Uncaught SyntaxError: Unexpected token < frontend.js:1
Uncaught SyntaxError: Unexpected token <
127.0.0.1/:21 Resource interpreted as Script but transferred with MIME type text/html: "http://ift.tt/1K1j3U4".
127.0.0.1/:13 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://ift.tt/1zsHbnv".
127.0.0.1/:22 Resource interpreted as Script but transferred with MIME type text/html: "http://ift.tt/1K1j1M2".
127.0.0.1/:14 Resource interpreted as Stylesheet but transferred with MIME type text/html: "http://ift.tt/1zsHa2S".
Aucun commentaire:
Enregistrer un commentaire