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.

npm run build freezes on "Creating an optimized production build..."

See original GitHub issue

This 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:closed
  • Created 5 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

9reactions
binakumaricommented, Mar 2, 2019

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

@coreui/coreui-free-react-admin-template@2.1.4 build /mnt/c/Users/binakum/Projects/coreuiReact react-scripts build

Creating an optimized production build…

4reactions
xidedixcommented, Apr 27, 2019

hi @jmandivarapu1

Set GENERATE_SOURCEMAP=false in your .env file and if it works for you, please let us know.

Read more comments on GitHub >

github_iconTop 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 >

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