我将网络应用从ember工具迁移到ember-cli并遇到问题。到目前为止,我已经能够处理所有错误,但不是这个错误。我有一个auth
控制器。在几个页面上,我包含了needs:["auth"]
,但我在重新启动服务器时看到的错误很奇怪。
ReferenceError: (generated application controller)#needs does not
include `auth`. To access the auth controller from (generated application
controller), (generated application controller) should have a `needs`
property that is an array of the controllers it has access to.
我不确定错误意味着什么,我能够在Firebug中调试已编译的脚本,但是当我尝试将任何needs:whatever
添加到其中时,它无法正常工作auth控制器本身。
提前致谢。