-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NX 15.8.5 debug error #15536
Comments
On windows 10, x64. After migrating NX from 13 to latest (15.8.5), experiencing the same. |
Not 100% sure if this is related, but it feels like it might be similar issue, so added here as comment rather than new issue.
Community plugins: Node Breakpoint errorCan get debugger to attach to Node and debug console sees the api logger messages, but is failing to link breakpoints. launch.json
Debug Diagnostics help on "why my breakpoints don't bind":
Chrome Launch ErrorSimilar to above but this may also be related to issues I've researched on Chrome version. t launch.json
In this case the launched browser opens but actually fails to load the angular application (maybe the unrelated chrome error). navigation manually to http://localhost:4200 is all fine.
|
@AgentEnder I would like to raise the priority of the ticket, because besides debug, build and run are not working d:\NX_BUG_REPROD\latest>npx nx build:all Run a target for a project You can also use the infix notation to run a target: You can skip the use of Nx cache by using the --skip-nx-cache option. Options: Error: Both project and target have to be specified |
It seems more likely that you are wanting to run |
I believe this PR likely fixed the issue with casing that was noted: #15643 If so, this would be fixed in 15.8.7 |
Hi, We have tried with the latest but still can't debug. We have read others' comments of other tickets, and found out how to debug: The problem was with the webpack config. In one sentence: With the latest version (15.8.7) and with the modified webpack.config.js everything works on windows 10 and windows 11. Build, run, debug with WSCode... |
Many thx @AgentEnder @natrixofficial |
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
When trying to debug the application from VSCode, run-one.js throws an error.
Expected Behavior
The expected functionality would be to be able to debug the application without errors.
GitHub Repo
https://github.com/janosroska/latest
Steps to Reproduce
Nx Report
Failure Logs
Additional Information
The value of the cwd and root variables are different, root starts with a lowercase letter and the cwd with an uppercase. The first character is the drive letter, for ex. "d:\NX_BUG_REPROD\latest", "D:\NX_BUG_REPROD\latest"
The original (13.10.2) code checks whatever the relativeCwd variable is undefined or not. We did not invastigate any other places but probably there are more places where this problem exists in the new (15.8.5) version.
function calculateDefaultProjectName(cwd, root, projectsConfigurations, nxJsonConfiguration) {
var _a;
let relativeCwd = cwd.replace(/\/g, '/').split(root.replace(/\/g, '/'))[1];
relativeCwd = relativeCwd.startsWith('/')
? relativeCwd.substring(1)
: relativeCwd;
The text was updated successfully, but these errors were encountered: