Closed kentytik closed 1 year ago
Could you please provide a repo which has the issue or at least your package.json
file?
Could you please provide a repo which has the issue or at least your
package.json
file?
contents of package.json file provided in edit of issue
By "any Nx" command what do you actually mean? The npx nx report
is also an nx
command at it seems to be working fine meaning the graph is successfully created.
We would need a minimal repo or the detailed scenario in order to reproduce and investigate this issue.
Based on the error it seems that version
of the napi
package could not be resolved and resolved
field was missing. This usually happens when the lock file is broken.
The lock file that was generated for me based on your package.json
does not contain napi
package.
I also received this error after upgrade. On windows... I rm -rf node_modules package-lock.json and reinstalled and couldn't reproduce.
> npx nx report
> NX Failed to process the project graph with "nx-js-graph-plugin".
The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
Because of the error the Nx daemon process has exited. The next Nx command is going to restart the daemon process.
If the error persists, please run "nx reset".
Same problem here. All nx commands throw this error. Deleting node_modules and package-lock.json fixed the problem.
Can you let me know from which version were you migrating @rhutchison and @richardliebmann?
Also, which node and npm version are you using?
If anyone still encounters this issue, please send us the lock file before you delete it reinstall dependencies.
The issue seems to have been resolved now after update to to 16.4.0. Nx commands now run without any errors.
This issue seems go back in 16.5.5; switching to 16.4.0 fixes it
This issue seems go back in 16.5.5; switching to 16.4.0 fixes it
switching to 16.5.3 seems to work for me
This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.
Current Behavior
Any nx cli command fails with the following output:
Original error: Failed to convert napi
Undefined
into rust typeString
Error: Failed to convert napi)
at addNodes (/mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/lock-file/npm-parser.js:21:39)
at parseNpmLockfile (/mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/lock-file/npm-parser.js:14:5)
at parseLockFile (/mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/lock-file/lock-file.js:82:47)
at /mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/index.js:24:64
at Generator.next ()
at /mnt/usbhdd1/home/adwene/devx/node_modules/tslib/tslib.js:167:75
Undefined
into rust typeString
at nativeHashArray (/mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/hasher/impl/native-file-hasher.js:40:12) at createNode (/mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/lock-file/npm-parser.js:82:38) at /mnt/usbhdd1/home/adwene/devx/node_modules/nx/src/plugins/js/lock-file/npm-parser.js:28:13 at Array.forEach (The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received undefined
Expected Behavior
The nx cli command expected to run properly to produce the expected result
GitHub Repo
No response
Steps to Reproduce
Running any nx cli command in the workspace
Nx Report
Failure Logs
Operating System
Additional Information