Ember.js 弃用:升级到ember 1.10时ComputedProperty.cacheable()

Ember.js 弃用:升级到ember 1.10时ComputedProperty.cacheable(),ember.js,ember-cli,Ember.js,Ember Cli,我最近将ember 1.9升级到1.10,并得到以下结果: 弃用:ComputedProperty.cacheable()已弃用。默认情况下,所有计算属性都可以缓存。 然而,在我的代码中我看不到这有什么用处。我在一个ember cli 0.12.0项目中 凉亭 堆栈跟踪: DEPRECATION: ComputedProperty.cacheable() is deprecated. All computed properties are cacheable by default.

我最近将ember 1.9升级到1.10,并得到以下结果:

弃用:ComputedProperty.cacheable()已弃用。默认情况下,所有计算属性都可以缓存。 然而,在我的代码中我看不到这有什么用处。我在一个ember cli 0.12.0项目中

凉亭

堆栈跟踪:

 DEPRECATION: ComputedProperty.cacheable() is deprecated. All computed properties are cacheable by default.
        at Descriptor.ComputedPropertyPrototype.cacheable (http://localhost:4201/assets/vendor.js:21101:13)
        at http://localhost:4201/assets/vendor.js:73759:10
        at requireModule (http://localhost:4201/assets/vendor.js:64433:29)
        at reify (http://localhost:4201/assets/vendor.js:64404:22)
        at requireModule (http://localhost:4201/assets/vendor.js:64432:17)
        at reify (http://localhost:4201/assets/vendor.js:64404:22)
        at requireModule (http://localhost:4201/assets/vendor.js:64432:17)
        at http://localhost:4201/assets/vendor.js:77306:14
        at http://localhost:4201/assets/vendor.js:77307:4
当此行在ember数据加载时似乎打印dep

具体化=具体化(mod.deps,name,seen[name]);64432


移动到凉亭和包装

"ember-data": "1.0.0-beta.14.1"

修复了此问题

在requireModule的
调用中,您看到了什么(http://localhost:4201/assets/vendor.js:64349:17)
vendor.js中的
?对不起,什么行@Oren我改变了stacktraceI看到这个:reifyd=reify(mod.deps,name,seed[name]);在64432,您可以运行ember inspector并在该行上放置一个断点——您应该能够从这些变量的值推断正在加载的依赖关系。可能是ember数据本身使用了cacheable属性,跳到1.0 beta 14.1版,它可能会消失
"ember-data": "1.0.0-beta.14.1"