Skip to content

react-scripts start does not work with lerna run --parallel --stream #8685

Closed
@hugomallet

Description

@hugomallet

Since react-scripts 3.4.1
On macos 10.15.3 (not tested elsewhere)

running the command :

yarn lerna run --parallel --stream start

does not start the webpack dev server.

If i remove all lerna arguments it works :

yarn lerna run start

Activity

abrcdf1023

abrcdf1023 commented on Mar 22, 2020

@abrcdf1023

I have the same issue need rollback to v3.4.0 currently.

cevr

cevr commented on Mar 22, 2020

@cevr

From what I can tell, this only happens when the --stream argument is present

grahamvo

grahamvo commented on Mar 23, 2020

@grahamvo

I'm also seeing this issue. Tried removing --stream and it still isn't working.

rettgerst

rettgerst commented on Mar 23, 2020

@rettgerst

we've had several issues using lerna exec/run and use the concurrently package in place of lerna exec/run. it requires a bit of setup but overall has more features and fewer bugs.

grahamvo

grahamvo commented on Mar 23, 2020

@grahamvo

I ended up reverting back to 3.4.0 for the time being until this is fixed.

hieuxlu

hieuxlu commented on Mar 24, 2020

@hieuxlu
Contributor

This change is introduced by commit 7e6d6cd, and can be worked around by commenting out these lines in node_modules/react-scripts/scripts/start.js:168

   
    if (isInteractive || process.env.CI !== 'true') {
      // Gracefully exit when stdin ends
      process.stdin.on('end', function () {
        devServer.close();
        process.exit();
      });
     // Comment out this line
     // process.stdin.resume();
    }
added a commit that references this issue on Mar 24, 2020
68d0a86
added this to the 3.4.2 milestone on Mar 24, 2020
ddc22

ddc22 commented on Mar 30, 2020

@ddc22

Facing this same issue. I think lerna maybe triggering an end after running a task in parallel.

added a commit that references this issue on Mar 31, 2020
bukharov

bukharov commented on Mar 31, 2020

@bukharov

Instead of commenting out the line I set isInteractive to false, but the issue is still there. Setting CI env to true solves it however.

14 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

      Development

      Participants

      @bukharov@soyFerrero@hugomallet@rolandvar@ddc22

      Issue actions

        react-scripts start does not work with lerna run --parallel --stream · Issue #8685 · facebook/create-react-app