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.

Build process hangs on 'packaging'

See original GitHub issue
  • Version: 20.16.0
  • Target: Windows

I am trying to wrap React (CRA based) project with electron and it worked just fine:) untill this morning when the building process hanged on the ‘packaging’ step, when I’ve terminated the process following error appeared:

Error: C:\project\node_modules\app-builder-bin\win\x64\app-builder.exe exited with code 2 at ChildProcess.childProcess.once.code (C:\project\node_modules\builder-util\src\util.ts:251:14) at Object.onceWrapper (events.js:317:30) at emitTwo (events.js:126:13) at ChildProcess.emit (events.js:214:7) at maybeClose (internal/child_process.js:925:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5) From previous event: at copyNodeModules (C:\project\node_modules\electron-builder-lib\out\util\AppFileCopierHelper.js:321:18) at C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:261:42 at Generator.next (<anonymous>) From previous event: at then (C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:257:14) From previous event: at _computeFileSets (C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:258:10) at WinPackager.copyAppFiles (C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:280:27) at C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:214:10 at Generator.next (<anonymous>) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) From previous event: at WinPackager.doPack (C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:162:151) at C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:117:16 at Generator.next (<anonymous>) From previous event: at WinPackager.pack (C:\project\node_modules\electron-builder-lib\src\platformPackager.ts:115:95) at C:\project\node_modules\electron-builder-lib\src\packager.ts:379:24 at Generator.next (<anonymous>) at xfs.stat (C:\project\node_modules\fs-extra-p\node_modules\fs-extra\lib\mkdirs\mkdirs.js:56:16) at C:\project\node_modules\graceful-fs\polyfills.js:287:18 at FSReqWrap.oncomplete (fs.js:153:5) From previous event: at Packager.doBuild (C:\project\node_modules\electron-builder-lib\src\packager.ts:347:39) at C:\project\node_modules\electron-builder-lib\src\packager.ts:323:52 at Generator.next (<anonymous>) at C:\project\node_modules\graceful-fs\graceful-fs.js:99:16 at C:\project\node_modules\graceful-fs\graceful-fs.js:43:10 at FSReqWrap.oncomplete (fs.js:135:15) From previous event: at Packager._build (C:\project\node_modules\electron-builder-lib\src\packager.ts:300:133) at C:\project\node_modules\electron-builder-lib\src\packager.ts:296:23 at Generator.next (<anonymous>) at runCallback (timers.js:794:20) at tryOnImmediate (timers.js:752:5) at processImmediate [as _immediateCallback] (timers.js:729:5) From previous event: at Packager.build (C:\project\node_modules\electron-builder-lib\src\packager.ts:254:14) at C:\project\node_modules\electron-builder-lib\src\index.ts:51:40 at Generator.next (<anonymous>) From previous event: at build (C:\project\node_modules\electron-builder-lib\out\index.js:220:17) at build (C:\project\node_modules\electron-builder\src\builder.ts:234:10) at then (C:\project\node_modules\electron-builder\src\cli\cli.ts:46:19) at <anonymous>

$ build -c.extraMetadata.main=build/electron.js • electron-builder version=20.16.0 • loaded configuration file=package.json (“build” field) • loaded parent configuration preset=react-cra • description is missed in the package.json appPackageFile=C:\dev\reactjs\KioskUI\UserInterface\package.json • writing effective config file=dist\electron-builder-effective-config.yaml • rebuilding native production dependencies platform=win32 arch=x64 • rebuilding native dependency name=node-sass • packaging platform=win32 arch=x64 electron=2.0.3 appOutDir=dist\win-unpacked

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
develarcommented, Jun 26, 2018

@damianobarbati Will be fixed soon.

0reactions
yanlee26commented, Apr 21, 2020

⨯ macOS Catalina doesn’t support 32-bit executables and as result Wine cannot run Windows 32-bit applications too

Read more comments on GitHub >

github_iconTop Results From Across the Web

5.1 Windows build stuck on packaging - Unreal Engine Forums
After upgrading from UE 5.0.3, it seems like I'm unable to build my project anymore. The build process doesn't output any errors but...
Read more >
Solved: msbuild hangs at [build] Succeeded for packaging...
But when i run "msbuild", it gets stuck at the end and no files are generated inside the /bin/Debug folder inside solutions folder....
Read more >
Unity 5.5 build process hangs at "Packaging assets
I'm updating a project from Unity 5.4.3 to 5.5.0f3. Everything seems fine until I try and make a build of the project. The...
Read more >
CPack Hangs When Packaging a Library - Stack Overflow
I am compiling c++98 code using cmake 3.15.2. When I build the code (for all fore-mention OS), it builds just fine. However, when...
Read more >
VS2022 hangs during build for SDK style projects post ...
This is for a solution with more than 500 projects, all of which are C++ projects. There are two variants of the issue:...
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