You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with classes being compiled back to es5 using babel, where I have the default resolver call a method without having the source being bound to it.
E.x.:
classFooBar{getmyFirstProperty(){return'this works';}getmySecondProperty(){returnthis.someOtherProperty+' works too';}myMethod({param1, param2}){returnthis.someOtherProperty+' somehow does not work because calling "someOtherProperty" on undefined';}}
I found the issue in the implementation of "defaultResolveFn" where the "method" is called directly:
I have an issue with classes being compiled back to es5 using babel, where I have the default resolver call a method without having the source being bound to it.
E.x.:
I found the issue in the implementation of "defaultResolveFn" where the "method" is called directly:
A change to this and everything works fine:
I also tried to write a test for it but somehow with typescript it works without this change.
Is this an implementation issue, which could be fixed through this referenced PR or something else?
Thx
Best
Dimitri
The text was updated successfully, but these errors were encountered: