-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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 "Cannot find module 'date-fns/types' ..." #5020
Conversation
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.
✅ This pull request was sent to the PullRequest network for review. Expert reviewers are now being matched to your request based on the code's requirements. Stay tuned!
What to expect from this code review:
- Comments posted to any areas of potential concern or improvement.
- Detailed feedback or actions needed to resolve issues that are found.
- Turnaround times vary, but we aim to be swift.
@Svish you can click here to see the review status or cancel the code review job.
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.
PullRequest Breakdown
Reviewable lines of change
+ 1
- 1
100% TSX
Type of change
Fix - These changes are likely to be fixing a bug or issue.
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.
This change looks good from my perspective. No blocking concerns here!
Reviewed with ❤️ by PullRequest
Um... really don't understand why my type fix should cause the tests to fail here... looks suspiciously like a flaky date related test of some sort? 🤔 |
yes there seems to be an issue with one of the tests around the end of the month. |
Can I rerun it tomorrow somehow? Can't find a button for it anywhere, but maybe there isn't any for me without a kid of access to this project. |
yes I'll rerun is tomorrow or try fix it tonight if I can find time. |
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.
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.
Due to inactivity, PullRequest has cancelled this review job. You can reactivate the code review job from the PullRequest dashboard.
@martijnrusschen Any news on this? Tests still broken maybe? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5020 +/- ##
==========================================
- Coverage 96.53% 96.50% -0.03%
==========================================
Files 29 29
Lines 3343 3343
Branches 1398 1398
==========================================
- Hits 3227 3226 -1
- Misses 116 117 +1 ☔ View full report in Codecov by Sentry. |
Description
Problem
Upgraded to
react-datepicker@7
anddate-fns@3
, and now getting the following error when checking types withtypescript@5.5
:Changes
Simply corrected the import from
date-fns/types
todate-fns
.Contribution checklist