Emberjs.com网站初学者教程 [英] Emberjs.com website beginner Tutorial

查看:46
本文介绍了Emberjs.com网站初学者教程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我首先要说我是Ember的新手。我开始对这些概念全神贯注,但是我无法使其工作……



我尝试按照emberjs.com上的基本教程进行操作网站:



https://guides.emberjs.com/v2.2.0/tutorial/routes-and-templates/



据我所知一切都已正确安装/更新,并且我知道应该发生什么...但是当我通过 ember server命令运行服务器时,我的模板无法加载。正在检索index.html页,但是我放在模板中的所有内容(包括application.hbs)都丢失了。



有什么想法吗?我真的很想进入Ember,但是由于这个问题,我无法浏览我尝试的任何教程的第一页。请帮忙! :)

解决方案

您可能会遇到一个最新的ember-cli错误(已由 Ember CLI 1.13.14 -几个小时前发布。) 几个人们有遇到了最近发布的问题。 >作为参考,修复程序(如果您不更新ember-cli)是(来自此 answer 通过 Lawree


由于新版本的jQuery,这是一个错误。现在,您可以在bower.json文件中更改
以下行。然后运行bower install和
应该可以。

  jquery: ^ 1.11.3,到

jquery: 1.11.3,



I will start by saying I am new to Ember. I am starting to wrap my mind around the concepts but I haven't been able to make it work...

I tried following the basic tutorial on the emberjs.com website:

https://guides.emberjs.com/v2.2.0/tutorial/routes-and-templates/

As far as I can tell I have everything installed/updated properly, and I understand what is supposed to happen...but when I run the server via the "ember server" command my templates do not load. The index.html page is being picked up, but anything I put in my templates (including the application.hbs) is missing.

Any ideas?? I really want to get into Ember, but I can't get past page one of any tutorial I try because of this issue. Please help! :)

解决方案

You might be facing a recent ember-cli bug (which is fixed by Ember CLI 1.13.14 - released a few hours ago.). Several people have encountered that issue recently.

For reference, the fix (if you're not updating ember-cli) is (from this answer by Lawree)

This is a bug due to a new version of jQuery. For now you can change the following line in your bower.json file. Then run bower install and it should work.

"jquery": "^1.11.3", to

"jquery": "1.11.3",

这篇关于Emberjs.com网站初学者教程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆