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
When building a project using @nx/rollup specifying additionalEntrypoints a warning is shown The pattern libs\test-lib\src\entrypoints\*.ts did not match any files even though the files exist
The cause of the issue is because the createEntrypoints method is calling globSync from tinyglobby, passing a full windows path - tinyglobby only seems to support posix paths
As the paths are passed in as relative posix paths, working through the call stack I see that the paths are modified in withNx by calling path.join(workspaceRoot, entry) causing the conversion to windows path.
Replacing all separators at this point seems to solve the issue:
Current Behavior
When building a project using @nx/rollup specifying additionalEntrypoints a warning is shown
The pattern libs\test-lib\src\entrypoints\*.ts did not match any files
even though the files existExpected Behavior
The additional entrypoints are found correctly.
GitHub Repo
https://github.com/theotonge/nx-additionalEntrypoints-error-example
Steps to Reproduce
With repo
nx build test-lib
Manually
nx build test-lib
Nx Report
Failure Logs
Package Manager Version
No response
Operating System
Additional Information
The cause of the issue is because the createEntrypoints method is calling globSync from tinyglobby, passing a full windows path - tinyglobby only seems to support posix paths
As the paths are passed in as relative posix paths, working through the call stack I see that the paths are modified in withNx by calling
path.join(workspaceRoot, entry)
causing the conversion to windows path.Replacing all separators at this point seems to solve the issue:
The text was updated successfully, but these errors were encountered: