Skip to content
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

React scripts start/build does nothing #5016

Closed
leandrohsilveira opened this issue Sep 15, 2018 · 6 comments
Closed

React scripts start/build does nothing #5016

leandrohsilveira opened this issue Sep 15, 2018 · 6 comments

Comments

@leandrohsilveira
Copy link

leandrohsilveira commented Sep 15, 2018

Is this a bug report?

Yes.

Did you try recovering your dependencies?

Yes.
It happens after create app.
Happens with both npm i and yarn (Removed node_modules before each attempt).

$ npm --version
6.4.1

$ yarn --version
1.9.4

Which terms did you search for in User Guide?

Searched for "nothing", "exit", "start", "build". Found nothing related.

Environment

$ npx create-react-app --info

Environment:
  OS:  Windows 10
  Node:  8.12.0
  Yarn:  1.9.4
  npm:  6.4.1
  Watchman:  Not Found
  Xcode:  N/A
  Android Studio:  Not Found

Packages: (wanted => installed)
  react: ^16.5.1 => 16.5.1
  react-dom: ^16.5.1 => 16.5.1
  react-scripts: 1.1.5 => 1.1.5

Steps to Reproduce

  1. npm i -g create-react-app
  2. create-react-app <app_name>
  3. npm start or yarn start

Expected Behavior

Start development server.

Actual Behavior

$ yarn start
yarn run v1.9.4
$ react-scripts start
Done in 1.30s.

And nothing else.

Here is the output of my create-react-app command:
https://gist.github.com/leandrohsilveira/af9a2ce04da5f8d4f3b42b5a263635d1

@Timer
Copy link
Contributor

Timer commented Sep 17, 2018

Hmm, this is exceptionally odd ...

Are you able to run other Node scripts on your system? Did this problem persist after a reboot?

@leandrohsilveira
Copy link
Author

leandrohsilveira commented Sep 17, 2018

Hmm, this is exceptionally odd ...

Are you able to run other Node scripts on your system? Did this problem persist after a reboot?

Yes, all NPM scripts works fine.

I was suspecting that the problem only occurred on my work computer, but the same thing happened on my home computer.

An old project of mine created in July 2018 works fine. The dependencies of this project are:

"react": "^16.4.1",
"react-dom": "^16.4.1",
"react-scripts": "1.1.4",

@leandrohsilveira
Copy link
Author

leandrohsilveira commented Sep 17, 2018

It works with Docker, maybe something with OS?

@pmosconi
Copy link

Hi, I'm having the same issue and I traced it to my antivirus program (TrendMicro Internet Security): if I disable it react-scripts start works fine.
I'm bringing the issue to TM's attention.

@stale
Copy link

stale bot commented Nov 17, 2018

This issue has been automatically marked as stale because it has not had any recent activity. It will be closed in 5 days if no further activity occurs.

@stale stale bot added the stale label Nov 17, 2018
@stale
Copy link

stale bot commented Nov 22, 2018

This issue has been automatically closed because it has not had any recent activity. If you have a question or comment, please open a new issue.

@stale stale bot closed this as completed Nov 22, 2018
@lock lock bot locked and limited conversation to collaborators Jan 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants