Closed
Description
openedon Jul 22, 2024
Current Behavior
When installing node_modules with pnpm we get this error intermittently.
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: const { resolver, rejector } = pending.get(tx);
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: ^
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: TypeError: Cannot destructure property 'resolver' of 'pending.get(...)' as it is undefined.
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at createNodesResult (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146:25)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at consumeMessage (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/messaging.js:37:32)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:73:47
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Socket.<anonymous> (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/utils/consume-messages-from-socket.js:13:17)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Socket.emit (node:events:517:28)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at addChunk (node:internal/streams/readable:368:12)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at readableAddChunk (node:internal/streams/readable:341:9)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Readable.push (node:internal/streams/readable:278:10)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: Node.js v18.20.3
.../.pnpm/nx@19.5.1/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/nx@19.5.1/node_modules/nx postinstall: /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: const { resolver, rejector } = pending.get(tx);
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: ^
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: TypeError: Cannot destructure property 'resolver' of 'pending.get(...)' as it is undefined.
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at createNodesResult (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:146:25)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at consumeMessage (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/messaging.js:37:32)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at /builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/project-graph/plugins/isolation/plugin-pool.js:73:47
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Socket.<anonymous> (/builds/business/services/products/thunder/thunder-ui/node_modules/.pnpm/nx@19.5.1/node_modules/nx/src/utils/consume-messages-from-socket.js:13:17)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Socket.emit (node:events:517:28)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at addChunk (node:internal/streams/readable:368:12)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at readableAddChunk (node:internal/streams/readable:341:9)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Readable.push (node:internal/streams/readable:278:10)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: at Pipe.onStreamRead (node:internal/stream_base_commons:190:23)
.../.pnpm/nx@19.5.1/node_modules/nx postinstall: Node.js v18.20.3
.../.pnpm/nx@19.5.1/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_
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment