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

DEPRECATION: ComputedProperty.cacheable() when upgrading to ember 1.10

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

弃用: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

移动到 bower 和 package

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

修复了这个问题