-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
fix(js): use workspace rootDir while compiling TS files #19726
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Ignored Deployment
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit b28f70f. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 4 targets
Sent with 💌 from NxCloud. |
tsConfig.options.rootDir = options.rootDir; | ||
tsConfig.options.rootDir = '.'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the fix is based on conversation from here: #11583
The only problem is that options.root
(as suggested in comments) are always undefined
. Tested and
tsConfig.options.rootDir = undefined;
Works as well. Decided to use '.'
instead of undefined
as similar approach is used in several other places in codebase
hi @FrozenPandaz, could you, please, advice how can I handle the CI failing issue? I'ts not clear for me what exactly failing and why |
@leosvelperez I am asking for your review, because I think you were the one working on the "file is not under |
hey @kopach! Thanks for taking the time to contribute, and apologies for the delay in reviewing it. I'm going to close this since the current implementation is working as expected. All projects are built with the Other issues could result in the same error, but they are also solved differently and without the need to change the implementation. |
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. |
Fixes #11583
Tested this approach for some time already on real project using pnpm's patch mechanism