Skip to content

Intermittent Postinstall error for node 18.20.3 #27040

@ahernd2

Description

@ahernd2

Current Behavior

When installing node_modules with pnpm we get this error intermittently.

.../.pnpm/[email protected]/node_modules/nx postinstall: /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146
.../.pnpm/[email protected]/node_modules/nx postinstall:                 const { resolver, rejector } = pending.get(tx);
.../.pnpm/[email protected]/node_modules/nx postinstall:                         ^
.../.pnpm/[email protected]/node_modules/nx postinstall: TypeError: Cannot destructure property 'resolver' of 'pending.get(...)' as it is undefined.
.../.pnpm/[email protected]/node_modules/nx postinstall:     at createNodesResult (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146:25)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at consumeMessage (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/messaging.js:37:32)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:73:47
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Socket.<anonymous> (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/utils/consume-messages-from-socket.js:13:17)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Socket.emit (node:events:517:28)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at addChunk (node:internal/streams/readable:368:12)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at readableAddChunk (node:internal/streams/readable:341:9)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Readable.push (node:internal/streams/readable:278:10)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
.../.pnpm/[email protected]/node_modules/nx postinstall: Node.js v18.20.3
.../.pnpm/[email protected]/node_modules/nx postinstall: Failed

Expected Behavior

Post install should not throw an error randomly

GitHub Repo

No response

Steps to Reproduce

Nx Report

Node   : 18.20.3
OS     : linux-x64
pnpm   : 7.33.4

nx                 : 19.5.1
@nx/js             : 19.5.1
@nx/jest           : 19.5.1
@nx/linter         : 19.5.1
@nx/eslint         : 19.5.1
@nx/workspace      : 19.5.1
@nx/angular        : 19.5.1
@nx/cypress        : 19.5.1
@nx/devkit         : 19.5.1
@nx/esbuild        : 19.5.1
@nx/eslint-plugin  : 19.5.1
@nx/express        : 19.5.1
@nx/node           : 19.5.1
@nx/playwright     : 19.5.1
@nx/plugin         : 19.5.1
@nx/storybook      : 19.5.1
@nrwl/tao          : 19.5.1
@nx/web            : 19.5.1
@nx/webpack        : 19.5.1
typescript         : 5.5.3
---------------------------------------
Community plugins:
@ngneat/transloco    : 4.3.0
@ngrx/effects        : 18.0.1
@ngrx/operators      : 18.0.1
@ngrx/router-store   : 18.0.1
@ngrx/store          : 18.0.1
@ngrx/store-devtools : 18.0.1
@storybook/angular   : 7.5.3
ngx-build-plus       : 13.0.1
ngx-toastr           : 16.2.0
---------------------------------------
Local workspace plugins:
         workspace-plugin

Failure Logs

.../.pnpm/[email protected]/node_modules/nx postinstall: /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146
.../.pnpm/[email protected]/node_modules/nx postinstall:                 const { resolver, rejector } = pending.get(tx);
.../.pnpm/[email protected]/node_modules/nx postinstall:                         ^
.../.pnpm/[email protected]/node_modules/nx postinstall: TypeError: Cannot destructure property 'resolver' of 'pending.get(...)' as it is undefined.
.../.pnpm/[email protected]/node_modules/nx postinstall:     at createNodesResult (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146:25)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at consumeMessage (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/messaging.js:37:32)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:73:47
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Socket.<anonymous> (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/[email protected]/node_modules/nx/src/utils/consume-messages-from-socket.js:13:17)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Socket.emit (node:events:517:28)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at addChunk (node:internal/streams/readable:368:12)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at readableAddChunk (node:internal/streams/readable:341:9)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Readable.push (node:internal/streams/readable:278:10)
.../.pnpm/[email protected]/node_modules/nx postinstall:     at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
.../.pnpm/[email protected]/node_modules/nx postinstall: Node.js v18.20.3
.../.pnpm/[email protected]/node_modules/nx postinstall: Failed


### Package Manager Version

pnpm 7.33.4

### Operating System

- [ ] macOS
- [X] Linux
- [ ] Windows
- [ ] Other (Please specify)

### Additional Information

_No response_

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions