gpt4 book ai didi

javascript - Ember 构建错误

转载 作者:行者123 更新时间:2023-11-28 06:00:07 29 4
gpt4 key购买 nike

当运行ember build --environment=product时,一切似乎都编译得很好。将文件放入服务器上的 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)`.

我做错了什么?

最佳答案

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

关于javascript - Ember 构建错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37349856/

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