nx
nx copied to clipboard
16.5.0 does not work on Node.js 14 anymore
Current Behavior
$ ./node_modules/.bin/nx run-many --target=build --exclude='@react-docgen-internal/*' --verbose
> NX Running target build for 2 projects:
- @react-docgen/cli
- react-docgen
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
———————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————————
> NX Successfully ran target build for 2 projects
> NX performance is not defined
ReferenceError: performance is not defined
at Cache.<anonymous> (/workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/nx/src/tasks-runner/cache.js:124:13)
at Generator.next (<anonymous>)
at /workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:169:75
at new Promise (<anonymous>)
at Object.__awaiter (/workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:165:16)
at Cache._expandOutputs (/workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/nx/src/tasks-runner/cache.js:122:24)
at Cache.<anonymous> (/workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/nx/src/tasks-runner/cache.js:118:25)
at Generator.next (<anonymous>)
at /workspace/react-docgen/node_modules/.pnpm/[email protected]/node_modules/tslib/tslib.js:169:75
at new Promise (<anonymous>)
Expected Behavior
To work normally as in 16.4.x
GitHub Repo
https://github.com/reactjs/react-docgen/pull/817
Steps to Reproduce
- clone
- nvm install 14
- pnpm run build
Nx Report
> NX Report complete - copy this into the issue template
Node : 14.21.3
OS : linux-x64
pnpm : 8.6.6
nx : 16.5.0
@nrwl/tao : 16.5.0
typescript : 5.1.6
Failure Logs
No response
Operating System
- [ ] macOS
- [X] Linux
- [ ] Windows
- [ ] Other (Please specify)
Additional Information
No response