-
Notifications
You must be signed in to change notification settings - Fork 2.5k
feat(vite): allow passing path to custom tsconfig file when skipTypeCheck is false #19784
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
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 6d4463f. 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 6 targets
Sent with 💌 from NxCloud. |
…heck is false When skipTypeCheck is false and no tsconfig file exists in projectRoot, it returns undefined which causes `join(opts.workspaceRoot, opts.tsconfig)` to fail with `The "path" argument must be of type string. Received undefined`. Allow user to pass custom tsconfig file location which can be in parent/child directory of projectRoot
6d4463f
to
70a0ebd
Compare
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 70a0ebd. 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 6 targets
Sent with 💌 from NxCloud. |
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. |
When
skipTypeCheck
isfalse
and no tsconfig file exists in projectRoot, it returns undefined which causesjoin(opts.workspaceRoot, opts.tsconfig)
invalidateTypes
to fail withThe "path" argument must be of type string. Received undefined
.Allow user to pass custom tsconfig file location which can be in parent/child directory of projectRoot
Current Behavior
If tsconfig does not exist is projectRoot it fails with
The "path" argument must be of type string. Received undefined
Expected Behavior
Allow user to pass custom tsconfig file, so that vite build does not fail and type checking works.
Related Issue(s)