We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The code
class A {} class B extends A {}
Compiled to
var __extends = this.__extends || function (d, b) { // ... }; var A = (function () { // ... })(); var B = (function (_super) { // ... })(A);
Often resulting files can be handled in a specific way. For example, CommonJS module:
"use strict"; define("moduleName", function (exports, require, module) { var __extends = this.__extends || function (d, b) { // ... }; var A = (function () { // ... })(); // ... });
In the strict mode this inside functions is NULL. this.__extends leads to cannot read property __extends of undefined.
this
this.__extends
cannot read property __extends of undefined
My solution: __extends = (this && this.__extends) || function. Or delete this.__extends completely (why do we need it?).
__extends = (this && this.__extends) || function
The text was updated successfully, but these errors were encountered:
Please see #1622 (specifically rbuckton's comment at the bottom)
Sorry, something went wrong.
No branches or pull requests
The code
Compiled to
Often resulting files can be handled in a specific way.
For example, CommonJS module:
In the strict mode
this
inside functions is NULL.this.__extends
leads tocannot read property __extends of undefined
.My solution:
__extends = (this && this.__extends) || function
.Or delete
this.__extends
completely (why do we need it?).The text was updated successfully, but these errors were encountered: