[Bug] react-static build hangs forever on all templates
See original GitHub issueBuilding 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
react-static create
- Pick “empty”
cd my-static-site
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:
- Created 4 years ago
- Comments:8 (5 by maintainers)
Top 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 >
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 Free
Top 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
Basic template is still hanging on “Bundling App…” for me on 7.2.3. Windows 10, tried with both yarn and npm.
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!