Ember:TypeError:无效的全名,预期:'类型:名称'得到:路线

时间:2017-09-13 13:40:22

标签: ember.js

当我尝试访问localhost:4200时,我收到以下错误。我可以去其他路线但不是这条路线。而且没有明确的错误日志。请帮帮我

TypeError: Invalid Fullname, expected: 'type:name' got: route:
at Registry.validateFullName (ember.debug.js:2286)
at Container.lookup (ember.debug.js:1258)
at Class.lookup (ember.debug.js:34323)
at C.getHandler (ember.debug.js:29862)
at C.fetchHandler (ember.debug.js:48543)
at C.get (ember.debug.js:48708)
at C.becomeResolved (ember.debug.js:48679)
at calculatePostTransitionState (ember.debug.js:30387)
at Class._hydrateUnsuppliedQueryParams (ember.debug.js:30099)
at Class._prepareQueryParams (ember.debug.js:30030)

1 个答案:

答案 0 :(得分:0)

这可能与注入无效服务有关。从Ember v2.6.3升级到v2.7.0时,我遇到了同样的问题。

store: Ember.inject.service('store:user')停止了工作,我不得不在我的服务中使用store: Ember.inject.service('store')