gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-04 21:14:05 29 4
gpt4 key购买 nike

还有其他人在浏览器控制台中收到此警告吗?当页面第一次加载时,它总是在第一行。

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

我的堆栈:
 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: -------------------------------

最佳答案

这通常是由于模板中某处的 html 对 Handlebars 进行了不正确的注释。

我有:

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

这导致了这个问题。应该删除所有未使用的 Handlebars 或至少不要在评论中混合使用 html 和 Handlebars 。

关于ember.js - ember-cli-live-reload Uncaught SyntaxError : Unexpected token <,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28505945/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com