Ember.js: (0 , _emberBabel.createSuper) is not a function. Recent babel 7.9.0 seems to break all apps

Created on 20 Mar 2020  路  8Comments  路  Source: emberjs/ember.js

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.

Bug

Most helpful comment

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

All 8 comments

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

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

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).

@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.

D'oh 馃う鈥嶁檪, it is a runtime error not a build error. Sorry.

Should be resolved by https://github.com/emberjs/ember.js/pull/18831, which will be backported for 3.16, 3.17, and 3.18.

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.

Was this page helpful?
0 / 5 - 0 ratings