nx icon indicating copy to clipboard operation
nx copied to clipboard

@swc/core peer dependency warnings on fresh Nx 18.3.4 setup for angular/esbuild (windows)

Open ErickRodrCodes opened this issue 1 year ago • 0 comments

Current Behavior

It could be annoying, but not critical. While you install a package you end up with this:

image

Expected Behavior

it should not run warnings on any npm install

Solution is quite simple: change the dependency to be @swc/core@^1.4.13

after that warnings are gone:

image

GitHub Repo

No response

Steps to Reproduce

  1. npx create-nx-workspace@latest
  2. setup an Angular monorepo with esbuild, and playwright
  3. enter in your workspace, remove node_modules, run npm i

Nx Report

NX   Report complete - copy this into the issue template

Node   : 20.10.0
OS     : win32-x64
npm    : 10.2.3

nx (global)        : 18.0.4
nx                 : 18.3.4
@nx/js             : 18.3.4
@nx/jest           : 18.3.4
@nx/linter         : 18.3.4
@nx/eslint         : 18.3.4
@nx/workspace      : 18.3.4
@nx/angular        : 18.3.4
@nx/devkit         : 18.3.4
@nx/eslint-plugin  : 18.3.4
@nx/playwright     : 18.3.4
@nrwl/tao          : 18.3.4
@nx/web            : 18.3.4
@nx/webpack        : 18.3.4
typescript         : 5.4.5
---------------------------------------
Registered Plugins:
@nx/playwright/plugin
@nx/eslint/plugin

Failure Logs

No response

Package Manager Version

npm 10.2.3

Operating System

  • [ ] macOS
  • [ ] Linux
  • [X] Windows
  • [ ] Other (Please specify)

Additional Information

No response

ErickRodrCodes avatar May 03 '24 19:05 ErickRodrCodes