简体   繁体   English

Ember构建错误

[英]Ember build error

When running ember build --environment=production everything seems to compile just fine. 当运行ember build --environment=production似乎编译得很好。 Putting the files inside dist/ on my server goes fine as well, but when I click a link on my page I get the following error: 将文件放在dist/我的服务器上也可以,但是当我点击页面上的链接时,我收到以下错误:

      vendor-ef159bc….js:11 Error while processing route: account Unexpected token < in JSON at position 0 SyntaxError: Unexpected token < in JSON at position 0
at Object.parse (native)
at ae.parseJSON (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:12644)
at W (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:1:15665)
at n (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:13996)
at XMLHttpRequest.<anonymous> (http://localhost:8000/assets/vendor-ef159bc608efff575c24c5e13c2d1218.js:3:20168)`.

What did I do wrong? 我做错了什么?

我最近通过在bower.json中从jQuery 2降级到jQuery 1,然后在bower_components中删除jQuery文件夹,然后运行bower install命令,解决了类似的问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM