Skip to content
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

Fails to serve swc executor in VS Code. #11130

Closed
jean343 opened this issue Jul 13, 2022 · 1 comment · Fixed by #11131
Closed

Fails to serve swc executor in VS Code. #11130

jean343 opened this issue Jul 13, 2022 · 1 comment · Fixed by #11131

Comments

@jean343
Copy link
Contributor

jean343 commented Jul 13, 2022

Current Behavior

I have created a default Launch config in VS Code to run my app which is using the @nrwl/js:swc executor.
During execution, VS Code automatically attach a debugger, and SWC will print out Debugger attached. to stdout. See this comment.

In the compile-swc file, stderrOnData will be called with the string Debugger attached., and will mark the compilation as failed.

Expected Behavior

The swc executor should ignore the string Debugger attached., and should consider the compilation successful.

Steps to Reproduce

Add a project with the executor "executor": "@nrwl/js:swc",.
Launch it with a debugger, this is easy in VS Code.

This issue may not be prioritized if details are not provided to help us reproduce the issue.

Failure Logs

Debugger attached. // This is my own console.log
There was an error with the build. See above.

Environment

 >  NX   Report complete - copy this into the issue template

   Node : 16.15.0
   OS   : darwin arm64
   yarn : 3.2.0
   
   nx : 14.4.2
   @nrwl/angular : Not Found
   @nrwl/cypress : 14.4.2
   @nrwl/detox : Not Found
   @nrwl/devkit : 14.4.2
   @nrwl/eslint-plugin-nx : 14.4.2
   @nrwl/express : Not Found
   @nrwl/jest : 14.4.2
   @nrwl/js : 14.4.2
   @nrwl/linter : 14.4.2
   @nrwl/nest : Not Found
   @nrwl/next : 14.4.2
   @nrwl/node : 14.4.2
   @nrwl/nx-cloud : Not Found
   @nrwl/nx-plugin : Not Found
   @nrwl/react : 14.4.2
   @nrwl/react-native : Not Found
   @nrwl/schematics : Not Found
   @nrwl/storybook : 14.4.2
   @nrwl/web : 14.4.2
   @nrwl/workspace : 14.4.2
   typescript : 4.7.4
   ---------------------------------------
   Community plugins:
         @nxext/svelte: 14.0.0
         @nxext/vite: 14.0.1
@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants