新的Ember应用程序提供空白屏幕 [英] New Ember app gives blank screen

查看:96
本文介绍了新的Ember应用程序提供空白屏幕的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚离开,并做了一个介绍性教程构建一个简单的应用程序。当我创建一个新的应用程序并启动服务器时,我尝试访问本地主机页面( http:// localhost:4200 / )在我的浏览器,但页面是空白。浏览器窗口标题是我的应用程序名称,但没有欢迎使用Ember文本,因为它们应该是。 ember检查员也说没有检测到Ember应用程序!虽然Firefox的地址栏中出现了一个小的ember图标,表示有一个ember应用程序。

I'm new to ember and doing a introductory tutorial to build a simple app. When I create a new app and start server, I try visiting the localhost page (http://localhost:4200/) in my browser but the page is blank. The browser window title is of my app name but there is no "Welcome to Ember" text as their should be. Also the ember inspector says "Ember application not detected!" although the little ember icon appears in the address bar of Firefox indicating that there is an ember app.

我尝试重新启动 tutorial 3次,并得出相同的结果。我遵循所有设置步骤,这里。我唯一做的不同或除了turorial之外,我不得不运行 sudo chown -R $ USER / usr / local ,因为权限问题

I have tried to restart the tutorial 3 times now and come up with same results. I have followed all set-up steps provided here. The only thing I did different or in addition to the turorial is I had to run sudo chown -R $USER /usr/localbecause of permissions issues.

我迄今为止所做的一切都是安装节点,npm,bower,ember-cli 2.2.0-beta.2,然后运行以下几个命令:

All I have done so far is install node, npm, bower, ember-cli 2.2.0-beta.2., and then run these few commands:

ember new ember2-blog
cd ember2-blog
ember server

终端给我一个Build success - 7016ms。消息,但我转到 http:// localhost:4200 / 并查看空白页...检查员说不ember app检测到。似乎我错过了一些简单的事情,但无法想像出来。这与权限有关吗?请谢谢您的帮助。

The terminal gives me a "Build successful - 7016ms." message but I go to http://localhost:4200/ and see the blank page... The inspector says "no ember app detected". Seems like I'm missing something simple but can't figure it out. Is it something to do with permissions? Please and thank you for your help.

推荐答案

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

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",

"jquery": "1.11.3",

新版本的ember.js是即将来临的,应该修复这个

A new version of ember.js is imminent which should fix this.

这篇关于新的Ember应用程序提供空白屏幕的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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