Build script does not terminate on its own
See original GitHub issueIs this a bug report?
Yes
Can you also reproduce the problem with npm 4.x?
Environment
node -v
:v7.10.1
npm -v
:5.3.0
and4.6.1
yarn --version
(if you use Yarn):0.27.5
npm ls react-scripts
(if you haven’t ejected):
Steps to Reproduce
yarn build
Expected Behavior
yarn run v0.27.5
$ react-scripts build
Creating an optimized production build...
Compiled successfully.
File sizes after gzip:
48.12 KB build\static\js\main.9fdf0e48.js
288 B build\static\css\main.cacbacc7.css
The project was built assuming it is hosted at the server root.
To override this, specify the homepage in your package.json.
For example, add this to build it for GitHub Pages:
"homepage" : "http://myname.github.io/myapp",
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
Done in 63.74s.
It terminates in some finite amount of time.
(Write what you thought would happen.)
Actual Behavior
The files are built but the built halts at the point:
The build folder is ready to be deployed.
You may serve it with a static server:
yarn global add serve
serve -s build
|
It awaits for some input as the carat is there.
This was reproduced on my mac, windows and on Travis CI. I have also had it running on my machine, to make sure it just didn’t take a very long time, but it has been running for over two hour and still hasn’t stopped.
Interestingly, if you attempt to terminate the batch script
^CTerminate batch job (Y/N)?
Entering either Y or N will result in the script terminating.
Reproducible Demo
create-react-app my-app --scripts-version custom-react-scripts
yarn build
Issue Analytics
- State:
- Created 6 years ago
- Reactions:4
- Comments:9 (2 by maintainers)
Top Results From Across the Web
Vue.js Build.js script does not terminate
I have a legacy Vue.js project that used to be working fine. Recently when trying to build the project locally by running "npm...
Read more >Prevent GNU screen from terminating session once ...
When you start a window without specifying a command, it is not "doing nothing". The "something" it is doing is running an interactive...
Read more >[JENKINS-17116] graceful job termination
But cancelling a jenkins job seems to use SIGKILL. In this way the script cannot perform cleanup operations and free resources. SIGKILL cannot...
Read more >How to Exit a Python script?
In this article, we will take a look at exiting a python program, performing a task before exiting the program, and exiting the...
Read more >Stop or exit a PowerShell script when it errors
Unlike other programming languages, the PowerShell scripting language has two types of error scenarios: terminating and non-terminating.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hey @hipertracker, new version is published now. Let me know if it’s fine!
I’m facing this problem too. As a workaround I followed the steps:
timeout-cli
andshelljs
packages as dev dependenciesnode build.js
build.js
file with the content below:This is definitely not a good solution, but it doesn’t hide any build issues and it makes sure the build script finally ends on its own. I can finally deploy to Netlify now.
The solution specified by @gr33k01 seems promising, but I haven’t tested it yet.