npm run build freezes on "Creating an optimized production build..."
See original GitHub issueThis is for the newest release (2.0.13), as I’ve got an older version (2.0.8) that builds fine. The current build hangs even after running it overnight. I am using Windows Subsystem for Linux on two different machines and am experiencing the same issues with both (32GB of RAM in both and one machine has an i7 4th gen and the other an i7 7th gen). Any idea what might be going on to cause the current version to hang while 2.0.8 builds with dozens of other additions in ~100 seconds? Thanks.
npm run build
> @coreui/coreui-free-react-admin-template@2.0.13 build /mnt/c/Users/mikem/WebstormProjects/antd/client
> react-scripts build
Creating an optimized production build...
Issue Analytics
- State:
- Created 5 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Creating an optimized build freezes and never completes
I am trying to build my react app. But when I run "npm run build", The terminal freezes on "Creating and optimized production...
Read more >Optimizing Performance - React
If your project is built with Create React App, run: npm run build. This will create a production build of your app in...
Read more >Reactscripts Build Freezes At "Creating Optimized Build"
Under the hood it uses Babel and webpack but you don't need to know anything about them. When you're ready to deploy to...
Read more >Failed to compile after Creating an optimized production build
2022-09-14T15:26:02.523979Z|[4/4] Building fresh packages…| |2022-09-14T15:26:06.625695Z|Done in 51.25s.| |2022-09-14T15:26:06.664564Z|NPM ...
Read more >'npm install' gets stuck and eventually 'Killed' at ... - Reddit
This is what I get after I run 'npm run build': ... (internal/modules/cjs/loader.js:1114:10) info - Creating an optimized production build .
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
I’m having the same issue but sudo doesn’t fix it.
I am using ubuntu 16.04 on windows 10, Node version: 10.15.0 NPm version: 6.4.1
Creating an optimized production build…
hi @jmandivarapu1
Set
GENERATE_SOURCEMAP=false
in your.env
file and if it works for you, please let us know.