-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Does not work with ember-source 3.27+ #70
Comments
ember-cached-decorator-polyfill has a bug with those versions: ember-polyfills/ember-cached-decorator-polyfill#70
I just hit the same issue when upgrading to Ember 3.27. @rwjblue, @buschtoens - what should we do? |
This is basically because of ember-cached-decorator-polyfill/index.js Lines 16 to 26 in 5759283
Specifically, we are telling ember-cli-babel that it shouldn't compile modules. But that isn't going to work quite right (since in Ember 3.27+ the modules are actually directly used). |
Hmm. I'm not able to reproduce (I checked out this repo and ran its tests). Can someone make a quick reproduction so I can debug? |
@rwjblue - it's as simple as: ember new test-test
cd test-test
# modify package.json to use Ember 3.27
npm install
ember install ember-cached-decorator-polyfill
ember test -s |
I think emberjs/ember-cli-babel#402 will resolve. |
please test with https://github.com/babel/ember-cli-babel/releases/tag/v7.26.5 |
@rwjblue - the same example I gave above still doesn't work even with 7.26.5. :( My project also doesn't work. |
Using ember-cli-babel v7.26.5 still seeing the issue. |
We're also hitting this in EmberData with ember-cli-babel 7.26.5. I noticed this was still resolving an older version though from the lockfile and so I regenerated it and made sure it was resolving 7.26.5. I've confirmed it is still broken even when this addon does resolve 7.26.5, so the fix upstream was insufficient. |
I don't think emberjs/ember-cli-babel#402 is complete or correct, see emberjs/ember-cli-babel#402 (comment) This addon is using As long as A more complete fix is to refactor this polyfill so it transpiles |
I paired with @ef4 to make the changes in ember-cli-babel more correct (well, really they are still kinda bonkers but they more correctly emulate the "old world") in emberjs/ember-cli-babel#407. Testing the reproduction steps provided by @boris-petrov results in a passing test run. |
@rwjblue - thanks! That fixed the error from above... but it still doesn't work. 😄 Use the reproduction from above and just add in import { cached } from '@glimmer/tracking';
class X {
@cached
get foo() {
return 1;
}
} Then running
|
Confirmed that I'm seeing the same issue as @boris-petrov. Looks like the haxx introduced in #12 may be causing snags here? Reproduction available here: https://github.com/acorncom/cached-decorator-babel-issues-reproduction (latest [email protected] in use) In my case, the error thrown is:
and that seems to be causing issues for |
Issue opened at #77 |
I landed @mydea's PR and released in https://github.com/ember-polyfills/ember-cached-decorator-polyfill/releases/tag/v0.1.2. I also confirmed in @acorncom's reproduction (from #77) works without issue with that update (tested against both Embroider and non-Embroider builds). |
On 3.27-beta.4, I get the error:
The text was updated successfully, but these errors were encountered: