aurelia/i18n

ReferenceError: _classCallCheck is not defined

valichek opened this issue · 5 comments

Getting this error after updating to the latest beta.xxx version. Looks like dependency problem. I'm trying to update my app step-by-step, so would be nice to know about the source of this error. @EisenbergEffect

Can you give me a line number on that and let me know if it's webpack or jspm?

JSPM. Error occurs in 24th line:

  var I18N = exports.I18N = function () {
    function I18N(ea, signaler) {
      var _this = this;

      _classCallCheck(this, I18N);

I use webpack 1.x
Cannot define line number because it is bundled, but looks that it is the same as @krostkowski just reported.

Unhandled rejection ReferenceError: _classCallCheck is not defined
    I18N@http://localhost:3000/1.bundle.js:29651:6
    registerI18N@http://localhost:3000/1.bundle.js:16872:19
    configure@http://localhost:3000/1.bundle.js:16937:27
    _loadPlugin/<@http://localhost:3000/1.bundle.js:47585:33
From previous event:
    _loadPlugin@http://localhost:3000/1.bundle.js:47583:13
    loadPlugin/<@http://localhost:3000/1.bundle.js:47576:15
From previous event:
    loadPlugin@http://localhost:3000/1.bundle.js:47575:13
From previous event:
    next@http://localhost:3000/1.bundle.js:47832:19
    apply/<@http://localhost:3000/1.bundle.js:47839:15
From previous event:
    apply@http://localhost:3000/1.bundle.js:47825:13
    start@http://localhost:3000/1.bundle.js:47454:13
    [216]/<@http://localhost:3000/bundle.js:8388:4
    bootstrap/<@http://localhost:3000/bundle.js:12339:13
    onBootstrap/</<@http://localhost:3000/bundle.js:12268:20
    run/</<@http://localhost:3000/bundle.js:12329:10
From previous event:
    run/<@http://localhost:3000/bundle.js:12321:6
From previous event:
    run@http://localhost:3000/bundle.js:12316:11
    [222]/<@http://localhost:3000/bundle.js:12343:2
    [222]@http://localhost:3000/bundle.js:12244:30
    __webpack_require__@http://localhost:3000/bundle.js:583:12
    hotCreateRequire/fn@http://localhost:3000/bundle.js:107:20
    [216]@http://localhost:3000/bundle.js:8304:36
    __webpack_require__@http://localhost:3000/bundle.js:583:12
    hotCreateRequire/fn@http://localhost:3000/bundle.js:107:20
    [0]@http://localhost:3000/bundle.js:639:19
    __webpack_require__@http://localhost:3000/bundle.js:583:12
    @http://localhost:3000/bundle.js:629:18
    @http://localhost:3000/bundle.js:1:11
"aurelia-bootstrapper-webpack": "^1.0.0-beta.1.0.2",
    "aurelia-event-aggregator": "^1.0.0-beta.2.0.0",
    "aurelia-fetch-client": "^1.0.0-beta.2.0.0",
    "aurelia-framework": "^1.0.0-beta.2.0.0",
    "aurelia-history-browser": "^1.0.0-beta.2.0.0",
    "aurelia-http-client": "^1.0.0-beta.2.0.0",
    "aurelia-i18n": "^1.0.0-beta.1.0.1",
    "aurelia-loader-webpack": "^1.0.0-beta.1.0.2",
    "aurelia-logging-console": "^1.0.0-beta.2.0.0",
    "aurelia-pal-browser": "^1.0.0-beta.3.0.0",
    "aurelia-polyfills": "^1.0.0-beta.2.0.0",
    "aurelia-router": "^1.0.0-beta.2.0.0",
    "aurelia-templating-binding": "^1.0.0-beta.2.0.0",
    "aurelia-templating-resources": "^1.0.0-beta.3.0.4",
    "aurelia-templating-router": "^1.0.0-beta.2.0.0",

I've tracked it down. It's a bug in our build process that is only affecting i18n. Give me a few minutes and I'll get a patch release out.

Ok, it should be fixed now and release to github, bower and npm. Apologies!