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

@nx/js:swc opens swc.js instead of compiling on Windows (16.7.1) #18673

Closed
2 of 4 tasks
ShopstoryFabian opened this issue Aug 17, 2023 · 1 comment · Fixed by #18723
Closed
2 of 4 tasks

@nx/js:swc opens swc.js instead of compiling on Windows (16.7.1) #18673

ShopstoryFabian opened this issue Aug 17, 2023 · 1 comment · Fixed by #18723

Comments

@ShopstoryFabian
Copy link

ShopstoryFabian commented Aug 17, 2023

Current Behavior

When running a target with the @nx/js:swc executor on Windows, swc.js is opened in the default editor instead of executed (compilation thus fails).
Tested on two different Windows machines. On macOS it still works as expected

Expected Behavior

That SWC gets executed

GitHub Repo

No response

Steps to Reproduce

  1. Have pretty default SWC target:
"build": {
  "executor": "@nx/js:swc",
  "outputs": ["{options.outputPath}"],
  "options": {
    "outputPath": "dist/packages/foo",
    "main": "packages/foo/src/index.ts",
    "tsConfig": "packages/foo/tsconfig.src.json",
    "assets": ["packages/foo/*.md"]
  }
}
  1. Run nx build foo
  2. swc.js opens in editor instead of executing

Nx Report

Node   : 16.17.0
   OS     : win32-x64
   pnpm   : 8.5.0
   nx (global)        : 16.1.4
   nx                 : 16.7.1
   @nx/js             : 16.7.1
   @nx/jest           : 16.7.1
   @nx/linter         : 16.7.1
   @nx/workspace      : 16.7.1
   @nx/cypress        : 16.7.1
   @nx/esbuild        : 16.7.1
   @nx/eslint-plugin  : 16.7.1
   @nx/next           : 16.7.1
   @nx/node           : 16.7.1
   @nx/react          : 16.7.1
   @nx/storybook      : 16.7.1
   @nrwl/tao          : 16.1.4
   @nx/vite           : 16.7.1
   @nx/webpack        : 16.7.1
   typescript         : 5.1.3

Failure Logs

No response

Operating System

  • macOS
  • Linux
  • Windows
  • Other (Please specify)

Additional Information

No response

@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 Sep 21, 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