Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ember-cli-live-reload Uncaught SyntaxError: Unexpected token <

Anyone else getting this warning in their browser console? It's always on the first line when the page first loads.

Uncaught SyntaxError: Unexpected token <          ember-cli-live-reload.js:1 

My stack:

 DEBUG: -------------------------------
ember.js:3935 DEBUG: Ember                     : 1.9.1
ember.js:3935 DEBUG: Ember Data                : 1.0.0-beta.14.1
ember.js:3935 DEBUG: Handlebars                : 2.0.0
ember.js:3935 DEBUG: jQuery                    : 1.11.2
ember.js:3935 DEBUG: Ember Simple Auth         : 0.7.2
ember.js:3935 DEBUG: Ember Simple Auth Testing : 0.7.2
ember.js:3935 DEBUG: -------------------------------
like image 531
yuяi Avatar asked Feb 13 '15 18:02

yuяi


1 Answers

This has usually been due to improper commenting out of handlebars with html somewhere in a template.

I had:

<!-- <hr>
{{#link-to 'job-applications.job-application' profile class="btn btn-default btn-block btn-outline" tagName='button'}}View Full Application{{/link-to}} -->

Which was causing the issue. Should remove all non-used handlebars or at least not mix html & handlebars in comments.

like image 63
Tristan Toye Avatar answered Sep 30 '22 10:09

Tristan Toye