1
我的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)
你是否在做类似'wait(app)'或'Ember.run(app)'的东西?我猜这是一个异步逻辑+运行循环的问题。否则,只需开始分类(注释掉所有的应用程序,查看可以加载的部分,缩小范围)。 –
你有没有使用Ember特定的插件或库?如果是这样,你会介意发布的名称和版本? – GJK