Skip to content

"npm run build" hangs #1418

Description

@phil-davis

The GitHub workflow build job is hanging after a minute or so. There is no output after that, and eventually the workflow job gets cancelled when it times out.

Running locally on my Ubuntu 22.04 laptop with nodejs 24 and npm 11 I get the same behavior, even when I increased allowed memory use to 8192:

$ export NODE_OPTIONS=--max-old-space-size=8192
$ npm run build

> market@0.2.0 build
> NODE_ENV=production webpack

asset market.bundle.js 1.05 MiB [emitted] [minimized] [big] (name: main) 1 related asset
orphan modules 678 KiB [orphan] 286 modules
runtime modules 1.61 KiB 7 modules
modules by path ./node_modules/core-js/ 693 KiB 628 modules
asset modules 5.64 KiB 22 modules
modules by path ./src/ 960 KiB 12 modules
modules by path ./node_modules/style-loader/dist/runtime/*.js 5.84 KiB 6 modules
modules by path ./node_modules/uikit/dist/js/*.js 399 KiB
  ./node_modules/uikit/dist/js/uikit-exposed.js 425 bytes [built] [code generated]
  + 2 modules
modules by path ./node_modules/css-loader/dist/runtime/*.js 2.89 KiB
  ./node_modules/css-loader/dist/runtime/noSourceMaps.js 64 bytes [built] [code generated]
  + 2 modules
./node_modules/vue-gettext/dist/vue-gettext.js 31 KiB [built] [code generated]
./node_modules/expose-loader/dist/runtime/getGlobalThis.js 702 bytes [built] [code generated]
./node_modules/showdown/dist/showdown.js 156 KiB [built] [code generated]
...
and lots of deprecated notices then
...

WARNING in asset size limit: The following asset(s) exceed the recommended size limit (244 KiB).
This can impact web performance.
Assets: 
  market.bundle.js (1.05 MiB)

WARNING in entrypoint size limit: The following entrypoint(s) combined asset size exceeds the recommended limit (244 KiB). This can impact web performance.
Entrypoints:
  main (1.05 MiB)
      market.bundle.js


WARNING in webpack performance recommendations: 
You can limit the size of your bundles by using import() or require.ensure to lazy load some parts of your application.
For more info visit https://webpack.js.org/guides/code-splitting/

webpack 5.105.2 compiled with 53 warnings in 15029 ms

And it hangs at that point.

It is not using CPU, so it's not in a compute loop.

The build workflow was added in PR #1414 - I approved and merged it. But I didn't notice that the "build" workflow job had hung and been cancelled (no big red X on the GitHub UI).

So now it is in master and still hangs in each PR, for example #1417

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions