Skip to content
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

feat: overlay displays unhandled promise rejection #4849

Conversation

malcolm-kee
Copy link
Contributor

  • This is a bugfix
  • This is a feature
  • This is a code refactor
  • This is a test update
  • This is a docs update
  • This is a metadata update

For Bugs and Features; did you add new tests?

Yes

Motivation / Use-Case

overlay.runtimeErrors should capture unhandled Promise rejection, as it's still runtime error, just async in nature.

Breaking Changes

Not breaking change.

Additional Info

Part of #3689

@codecov
Copy link

codecov bot commented May 7, 2023

Codecov Report

Patch coverage has no change and project coverage change: -0.12 ⚠️

Comparison is base (51f8a1b) 91.96% compared to head (f9fe3d2) 91.84%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4849      +/-   ##
==========================================
- Coverage   91.96%   91.84%   -0.12%     
==========================================
  Files          16       16              
  Lines        1704     1704              
  Branches      647      647              
==========================================
- Hits         1567     1565       -2     
- Misses        126      128       +2     
  Partials       11       11              

see 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@malcolm-kee malcolm-kee marked this pull request as ready for review May 7, 2023 09:05
@alexander-akait alexander-akait merged commit d1dd430 into webpack:master May 7, 2023
56 of 67 checks passed
@malcolm-kee malcolm-kee deleted the feat/overlay-display-unhandled-promise-rejection branch May 7, 2023 13:29
@yoyo837
Copy link
Contributor

yoyo837 commented May 9, 2023

How do I make unhandled promise rejection not overlay displays, so that it behaves the same as before.

@yoyo837
Copy link
Contributor

yoyo837 commented May 9, 2023

How do I make unhandled promise rejection not overlay displays, so that it behaves the same as before.

overlay: {
++runtimeErrors: false,
  errors: true,
  warnings: false,
},

This is the same behavior as before.

@keremcanb
Copy link

This feature gave us so much headache that we had to downgrade to the previous version.

@alexander-akait
Copy link
Member

@keremcanb just disable it using options

@keremcanb
Copy link

keremcanb commented May 31, 2023 via email

@alexander-akait
Copy link
Member

You can filter them, sorry we will not remove this feature

@tomasztomys
Copy link

It should be break change!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants