Skip to content
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

(0 , _emberBabel.createSuper) is not a function. Recent babel 7.9.0 seems to break all apps #18827

Closed
EWhite613 opened this issue Mar 20, 2020 · 8 comments · Fixed by #18831
Closed
Assignees
Labels

Comments

@EWhite613
Copy link
Contributor

EWhite613 commented Mar 20, 2020

Looks like even all apps are broken that pickup @babel 7.9.0 stuff which was recently published.

If you do ember new tester-if-broken. Then remove the config/target.js file you'll get that error after you visit the page after a ember s

Not sure if this is the right repo (let me know if I should move it)

But definitely seems related to the recent @babel 7.9.0 (pushed 3 hours ago). If have the 7.8.3 in my app, works fine. But as soon as I upgrade something that has babel it will pick up the new 7.9.0 and it will break.

@EWhite613
Copy link
Contributor Author

@jherdman
Copy link
Contributor

You are a saint. I've been fighting this all day.

@dgeb
Copy link
Member

dgeb commented Mar 20, 2020

I've noticed that this is related to targeting IE 11. Removing that target (if you're able to) seems to resolve the issue.

@rwjblue
Copy link
Member

rwjblue commented Mar 21, 2020

I'm looking into fixing this. Unfortunately, it will require changes to ember-source so the fix will likely only land for 3.16 and 3.17 (I don't think 3.12 is affected).

@rwjblue
Copy link
Member

rwjblue commented Mar 21, 2020

@EWhite613 - Doing:

git clone [email protected]:EWhite613/ember-broken-super-example.git
cd ember-broken-super-example
npm ci
ember b # also tried ember s

Does not have a build error.

@rwjblue
Copy link
Member

rwjblue commented Mar 22, 2020

D'oh 🤦‍♂, it is a runtime error not a build error. Sorry.

@rwjblue
Copy link
Member

rwjblue commented Mar 22, 2020

Should be resolved by #18831, which will be backported for 3.16, 3.17, and 3.18.

@bendemboski
Copy link
Contributor

Not sure if all of these are needed, but if you're using yarn,

  "resolutions": {
    "@babel/core": "7.8.7",
    "@babel/helpers": "7.8.4",
    "@babel/plugin-transform-classes": "7.8.6",
    "@babel/runtime": "7.8.7",
  }

will get things working until this fix is released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
5 participants