You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After migrating from NX 17.2.8 to 17.3.0, executing nx run project:target:configuration in any project inside the workspace raises the following error:
Error: Cannot find module 'C:\nx' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Expected Behavior
Running nx run project:target:configuration should complete without errors.
GitHub Repo
No response
Steps to Reproduce
Same error occurs with workspace init too:
1.In windows, create folder C:\nx temp and initialize a new workspace with nx run project:target:configuration
2.Select option: [In this directory]
Some files are created but the command returns with error:
Error: Cannot find module 'C:\nx' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: []
Current Behavior
After migrating from NX 17.2.8 to 17.3.0, executing
nx run project:target:configuration
in any project inside the workspace raises the following error:Error: Cannot find module 'C:\nx' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: [] }
Expected Behavior
Running
nx run project:target:configuration
should complete without errors.GitHub Repo
No response
Steps to Reproduce
Same error occurs with workspace init too:
1.In windows, create folder
C:\nx temp
and initialize a new workspace withnx run project:target:configuration
2.Select option: [In this directory]
Some files are created but the command returns with error:
Error: Cannot find module 'C:\nx' at Module._resolveFilename (node:internal/modules/cjs/loader:1075:15) at Module._load (node:internal/modules/cjs/loader:920:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:23:47 { code: 'MODULE_NOT_FOUND', requireStack: []
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
Tested with latest supported node versions, but with same error.
Tested in more than one product workspaces with same results.
The text was updated successfully, but these errors were encountered: