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

Anyone else get this warning in their browser console? This is always on the first line when the page loads first.

 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: ------------------------------- 
+5
source share
1 answer

This usually happens due to incorrect comment from rudders with html somewhere in the template.

I have had:

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

This caused a problem. You should remove all unused rudders or at least do not mix html and handlebars in the comments.

+2
source

Source: https://habr.com/ru/post/1213344/


All Articles