DEPRECATION:升级到ember 1.10时ComputedProperty.cacheable()

时间:2015-02-11 15:05:01

标签: ember.js ember-cli

我最近将ember 1.9升级到了1.10并得到了这个:

DEPRECATION:不推荐使用ComputedProperty.cacheable()。默认情况下,所有计算属性都可以缓存。 但是我在我的代码中没有看到任何这种用法。我在ember cli 0.12.0项目中

亭子

{
  "name": "proj",
  "dependencies": {
    "jquery": "^1.11.1",
    "ember": "1.10.0",
    "ember-data": "1.0.0-beta.12",
    "ember-resolver": "~0.1.11",
    "loader.js": "ember-cli/loader.js#1.0.1",
    "ember-cli-shims": "ember-cli/ember-cli-shims#0.0.3",
    "ember-cli-test-loader": "rwjblue/ember-cli-test-loader#0.0.4",
    "ember-load-initializers": "ember-cli/ember-load-initializers#0.0.2",
    "ember-qunit": "0.1.8",
    "ember-qunit-notifications": "0.0.4",
    "qunit": "~1.15.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 ..

reified = reify(mod.deps,name,seen [name]);在64432

enter image description here

1 个答案:

答案 0 :(得分:4)

转向凉亭和包裹

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

解决了这个问题