nx icon indicating copy to clipboard operation
nx copied to clipboard

fix(js): wrong compiler helper config file path for swc

Open atesztoth opened this issue 1 year ago • 2 comments

Fixes a bug that resulted in returning an object instead of a string for JS executors. There is also a helper type introduced that triggers TS to show an error for similar problems.

Also this PR rises the minimum prettier version from 2.7.1 to 2.8.0, because that supports the satisfies TS operator.

I had another PR for this change, but that got messed up by a rebase, so I closed that and opened this one. I wrote some comments there that describe what I did and why: https://github.com/nrwl/nx/pull/22335 . Also, since I created that PR many things have changed in the master branch which allows this PR to be even simpler.

Current Behavior

Currently build processes fail with this error message: The "path" argument must be of type string or an instance of Buffer or URL. Received an instance of Object .

I am experiencing it with a NestJS project.

Expected Behavior

Builds pass without problems.

Related Issue(s)

https://github.com/nrwl/nx/issues/22160

Fixes #22160

atesztoth avatar May 06 '24 11:05 atesztoth

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Ignored Deployment
Name Status Preview Updated (UTC)
nx-dev ⬜️ Ignored (Inspect) Visit Preview Jun 5, 2024 1:34pm

vercel[bot] avatar May 06 '24 11:05 vercel[bot]

This pull request has already been merged/closed. If you experience issues related to these changes, please open a new issue referencing this pull request.

github-actions[bot] avatar Jun 11 '24 00:06 github-actions[bot]