-
-
Notifications
You must be signed in to change notification settings - Fork 268
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
4.0.x crashes with 'Cannot read property 'apply' of undefined' #133
Comments
// @stroncium |
@swernerx Can you tell me how to reproduce this(file structure + command for preppy is ok)? if (this._stdinOldEmitOwnProperty) {
stdin.emit = this._stdinOldEmit;
} else {
delete stdin.emit;
}
this._stdinOldRawMode = undefined;
this._stdinOldEmit = undefined;
this._stdinOldEmitOwnProperty = undefined; so it shouldn't be possible our version of |
That's probably a tricky one because I don't see it everywhere... today I had it in one of my other OSS projects. Here is the branch which fails: https://github.com/sebastian-software/universal-dotenv/tree/ora-issue-133 to execute Hope this helps. Please tell me if you need something else. Thanks! |
@swernerx Ok, so I traced the problem. I think I should be able to fix this exact problem to at least make it to not crash, but you probably should change your code as well, as |
Did not know that it is not meant to run in parallel... that's a pity. I will probably check how I can revamp what's implemented in Preppy. |
@swernerx Well, it's not really mission critical if there will be minor glitches, so maybe it will work for you just as it is. Tbh, I didn't notice any while testing, so maybe it works good enough for you. It's just that it isn't officially supported as far as I know. As for the patching the problem you encountered, I need to analyze one more bug and check if it's related before finishing this. |
I am using Ora inside Preppy. Unfortunately updating to 4.0.x seems to break in some cases with the following error
TypeError: Cannot read property 'apply' of undefined:
Probably we should add another if-block to check whether the
_stdinOldEmit
is still defined.Any help would be appreciated.
The text was updated successfully, but these errors were encountered: