ember-polyfills / ember-cached-decorator-polyfill

Polyfill for RFC 566: @cached
MIT License
20 stars 6 forks source link

0.1.4 errors out similarly to #79 #94

Closed igorT closed 3 years ago

igorT commented 3 years ago

79 was fixed by https://github.com/ember-polyfills/ember-cached-decorator-polyfill/pull/80

In 0.1.3

ember addon bug
cd bug
yarn add ember-cached-decorator-polyfill
ember-data/model@3.29.0-alpha.5
ember build

works.

In 0.1.4 it gives us:

Build Error (broccoli-persistent-filter:Babel > [Babel: @ember-data/model]) in -private/attr.js

Duplicate plugin/preset detected.
If you'd like to use two separate instances of a plugin,
they need separate names, e.g.

  plugins: [
    ['some-plugin', {}],
    ['some-plugin', {}, 'some unique name'],
  ]

Duplicates detected are:
[
  {
    "alias": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js",
    "dirname": "/Users/iterzic/code/bug",
    "ownPass": false,
    "file": {
      "request": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js",
      "resolved": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js"
    }
  },
  {
    "alias": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js",
    "dirname": "/Users/iterzic/code/bug",
    "ownPass": false,
    "file": {
      "request": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js",
      "resolved": "/Users/iterzic/code/bug/node_modules/ember-cached-decorator-polyfill/lib/transpile-modules.js"
    }
  }
]
igorT commented 3 years ago

@dcyriller pinning ember-data to 0.1.3 for now https://github.com/emberjs/data/pull/7638

igorT commented 3 years ago

This seems to have been caused by an ember-data build issue. Fixed by https://github.com/emberjs/data/pull/7639