You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Starting from 19.6.1 (#27300), the executor @nx/js:tsc stopped working with Yarn PnP on Windows
The same problem is still occurring in version 20
Compiling TypeScript files for project "mylib"...
/git_clones/sandbox/test-pnp/packages/mylib/src/index.ts:1:1 - error TS2354: This syntax requires an imported helper but module 'tslib' cannot be found.
1 export * from './lib/mylib';
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The dependency tslib is present both at the root of the workspace and in the project mylib
The exact same code works with any of the following:
NX Report complete - copy this into the issue template
Node : 20.17.0
OS : win32-x64
Native Target : x86_64-windows
yarn : 4.5.0
nx : 20.0.0
@nx/js : 20.0.0
typescript : 5.5.4
---------------------------------------
Registered Plugins:
@nx/js/typescript
Failure Logs
No response
Package Manager Version
No response
Operating System
macOS
Linux
Windows
Other (Please specify)
Additional Information
I've previously opened an issue #27656 but it has been closed even though this is still happening in Nx 20 and I cannot reopen the issue.
Maybe my description was not clear enough so I've tried adding more details
The text was updated successfully, but these errors were encountered:
Current Behavior
Starting from 19.6.1 (#27300), the executor
@nx/js:tsc
stopped working with Yarn PnP on WindowsThe same problem is still occurring in version 20
The dependency
tslib
is present both at the root of the workspace and in the projectmylib
The exact same code works with any of the following:
nodeLinker: node-modules
instead of pnpExpected Behavior
The build should be successful
GitHub Repo
No response
Steps to Reproduce
npx create-nx-workspace test-pnp --packageManager=yarn
default answerscd test-pnp
yarn set version stable
echo nodeLinker: pnp >> .yarnrc.yml
yarn
yarn nx g lib packages/mylib
packages/mylib/project.json
with the following:yarn nx build mylib
Nx Report
Failure Logs
No response
Package Manager Version
No response
Operating System
Additional Information
I've previously opened an issue #27656 but it has been closed even though this is still happening in Nx 20 and I cannot reopen the issue.
Maybe my description was not clear enough so I've tried adding more details
The text was updated successfully, but these errors were encountered: