question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug] react-static build hangs forever on all templates

See original GitHub issue

Building even the ‘empty’ template does not ever finish on my machine. This is frustrating because it feels like an important piece of functionality that prevents adoption of react-static.

Environment

  System:
    OS: Windows 10
    CPU: (16) x64 AMD Ryzen 7 1700X Eight-Core Processor
    Memory: 9.09 GB / 15.95 GB
  Binaries:
    Node: 10.16.3 - C:\Program Files\nodejs\node.EXE
    npm: 6.9.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: 44.17763.1.0
    Internet Explorer: 11.0.17763.592
  npmPackages:
    react: ^16.9.0 => 16.9.0
    react-dom: ^16.9.0 => 16.9.0
    react-static: ^7.2.0 => 7.2.0
    react-static-plugin-reach-router: ^7.2.0 => 7.2.0
    react-static-plugin-sitemap: ^7.2.0 => 7.2.0
    react-static-plugin-source-filesystem: ^7.2.0 => 7.2.0

Steps to Reproduce the problem

  1. react-static create
  2. Pick “empty”
  3. cd my-static-site
  4. npm run build

Expected Behavior

The site is built into the dist directory.

Observed Behavior

The process hangs forever on the “Bundling App…” step:

lucien /c/projects/my-static-site
$ npm run build

> react-static-example-blank@ build C:\projects\my-static-site
> react-static build

Bundling application for Production...

Cleaning dist...
[✓] Dist cleaned (0.2s)
Cleaning artifacts...
[✓] Artifacts cleaned
Building Routes...
Importing routes from directory...
[✓] Routes Built (0.1s)
Building Templates...
[✓] Templates Built
Copying public directory...
[✓] Public directory copied
Bundling App...

I thought it might be my shell or terminal emulator, so I tried the same command on cmd.exe, Git Bash with ConHost, and Git Bash with Alacritty (my default setup). No dice.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dev-rsilvercommented, Nov 11, 2019

Basic template is still hanging on “Bundling App…” for me on 7.2.3. Windows 10, tried with both yarn and npm.

1reaction
SleeplessBytecommented, Sep 4, 2019

I’m on Windows, so is half the company, so we actively have this issue every day 😅. Don’t worry, it won’t be forgotten!

Read more comments on GitHub >

github_iconTop Results From Across the Web

create-react-app hangs when initializing an app - Stack Overflow
And it just hangs there forever. I'm using npm 5.6.0 and create-react-app 2.0.3 on Windows 8.
Read more >
Optimizing Performance - React
If you're benchmarking or experiencing performance problems in your React apps, make sure you're testing with the minified production build.
Read more >
Cache Busting a React App - DEV Community ‍ ‍
The user will be stuck with the service worker cache forever if the tab is never closed. If the user adds the site...
Read more >
How I solved and debugged my Webpack issue through trial ...
js ) and one of the source files contains an error, the stack trace will simply point to bundle.js . This isn't always...
Read more >
How To Set Up a React Project with Create React App
But now, Create React App includes all the JavaScript packages you ... the development server. npm run build Bundles the app into static...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found