Skip to content

Conversation

@btea
Copy link
Contributor

@btea btea commented Aug 1, 2025

Description

refer to webpack/webpack-dev-server#4773

Some runtime errors generally do not appear, and adding this option can help users find some subtle code problems.

After adding this option, an error message will appear in the pop-up window on the page.

image

@sapphi-red
Copy link
Member

I think this is related to #2076 and #6274.
I agree with the discussions in #6274 (comment) and think that a toast is better here.

@btea
Copy link
Contributor Author

btea commented Aug 8, 2025

Oh, I hadn't noticed that. Are we going to move forward with that?

@sapphi-red
Copy link
Member

sapphi-red commented Oct 29, 2025

@btea We discussed about this feature in the team meeting. We agreed to the following points:

  • it would be nice to have this feature built in
  • the UI should be either toast style (feat: runtime error overlay #6274 (comment)) or Next.js style (below, clicking the button shows the overlay) , whichever easier to implement and less invasive if possible
  • we are not sure about the options yet and will discuss later, but that wouldn't block the implementation as adding an option later isn't difficult
  • for a richer overlay, we probably want to delegate to Vite devtools, and want to keep the built-in one simple
image

@btea
Copy link
Contributor Author

btea commented Oct 30, 2025

Okay, thank you for your clear explanation. Will we continue with #6274?

@sapphi-red
Copy link
Member

It is fine either.

@btea
Copy link
Contributor Author

btea commented Oct 31, 2025

Based on the above suggestions, a basic implementation has been created.

Do you think the current solution is feasible? And regarding the error messages, do we need to perform detailed conversion processing according to #6274?

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.

2 participants