Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

process is not defined#540

Copy link
Copy link
@sandeepworks25

Description

@sandeepworks25
Issue body actions

Hi! 馃憢

Firstly, thanks for your work on this project! 馃檪

Today I used patch-package to patch readable-stream@3.6.2 for the project I'm working on.

Here is the diff that solved my problem:

diff --git a/node_modules/readable-stream/lib/_stream_readable.js b/node_modules/readable-stream/lib/_stream_readable.js
index df1f608..8d8a808 100644
--- a/node_modules/readable-stream/lib/_stream_readable.js
+++ b/node_modules/readable-stream/lib/_stream_readable.js
@@ -487,7 +487,7 @@ function emitReadable(stream) {
   if (!state.emittedReadable) {
     debug('emitReadable', state.flowing);
     state.emittedReadable = true;
-    process.nextTick(emitReadable_, stream);
+    setTimeout(() => emitReadable_(stream), 0);
   }
 }
 function emitReadable_(stream) {

This issue body was partially generated by patch-package.

Reactions are currently unavailable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.