Repository navigation
fix: don't crash on floating rejections - #2308
Conversation
commit: |
|
Thanks for the quick pull request, Giorgio. At first sight it looks plain and fine, but trying it out, using a single
So I'd like to try and localize the handling. With the commit I just pushed, the output of running knip from Would love to hear what you think, @gioboa? And also to hear from @alxwlw β does Knip no longer crash in your project(s)? You can try using the preview release from the pkg-pr-new comment above. |
There was a problem hiding this comment.
Thanks @webpro , much better than my global handler. Verified locally: output matches, exit 2, cache entries dropped, tests check the real behavior. Notes: Bun shows no file attribution, and watch mode keeps exiting 2.LGTM.
|
Thanks for the confirmation! I'm just going to merge, because I want to cut a release and not sure how many Next.js users might be facing the bug. |
|
π This pull request is included in v6.45.0. See Release 6.45.0 for release notes. Using Knip in a commercial project? Please consider becoming a sponsor. |
Closes #2307
Log a warning instead of crashing when a loaded config file leaves a rejected promise unhandled, such as next.config.*