找不到导致弃用警告的行

时间:2015-04-12 17:38:32

标签: ember.js

我的Rails / Ember应用程序目前正在使用ember 1.5.1版。我想把它带到Ember的最后一个版本,我是通过一次更新一个版本来实现的,所以我可以获得所有弃用警告并在继续之前修复它们。当我尝试从版本1.6.1升级到版本1.7.1时,我得到以下弃用警告,但我在我的应用程序中找不到我在应用程序实例上使用的任何地方。

您是否有任何关于我如何调查并找到当时使用情况的提示?提供的堆栈跟踪对我来说没什么用。

DEPRECATION: Do not use `.then` on an instance of Ember.Application.  Please use the `.ready` hook instead.
    at Namespace.extend.then (http://localhost:3000/assets/ember.js?body=1:2861:15)
    at apply (http://`localhost:3000`/assets/ember.js?body=1:18384:27)
    at superWrapper [as then] (http://localhost:3000/assets/ember.js?body=1:17961:15)
    at tryThen (http://loDEPRECATION: Do not use `.then` on an instance of Ember.Application.  Please use the `.ready` hook instead.
    at Namespace.extend.then (http://localhost:3000/assets/ember.js?body=1:2861:15)
    at apply (http://localhost:3000/assets/ember.js?body=1:18384:27)
    at superWrapper [as then] (http://localhost:3000/assets/ember.js?body=1:17961:15)
    at tryThen (http://localhost:3000/assets/ember.js?body=1:45661:14)
    at http://localhost:3000/assets/ember.js?body=1:45670:21
    at http://localhost:3000/assets/ember.js?body=1:29072:9
    at DeferredActionQueues.invoke (http://localhost:3000/assets/ember.js?body=1:635:18)
    at Object.DeferredActionQueues.flush (http://localhost:3000/assets/ember.js?body=1:685:15)
    at Object.Backburner.end (http://localhost:3000/assets/ember.js?body=1:148:27)calhost:3000/assets/ember.js?body=1:45661:14)
    at http://localhost:3000/assets/ember.js?body=1:45670:21
    at http://localhost:3000/assets/ember.js?body=1:29072:9
    at DeferredActionQueues.invoke (http://localhost:3000/assets/ember.js?body=1:635:18)
    at Object.DeferredActionQueues.flush (http://localhost:3000/assets/ember.js?body=1:685:15)
    at Object.Backburner.end (http://localhost:3000/assets/ember.js?body=1:148:27)

1 个答案:

答案 0 :(得分:0)

debugging page上找到了这个:

Ember.run.backburner.DEBUG = true;

希望它能为您提供导致问题的代码的完整回溯。