Vue-cli: Custom Error overlay

Created on 3 Mar 2018  ·  9Comments  ·  Source: vuejs/vue-cli

create-react-app has a really neat custom error overlay. Not sure if it is usable outside of CRA - I actually don't mind using it as-is if it's possible, but we likely have to port it (already have a placeholder package here).

  • Reports both webpack build errors & runtime errors
  • Stack frames for runtime errors
  • Jump to source files (we already have launch-editor middleware in the dev server)
contribution welcome feature intend to implement

Most helpful comment

@ajomadlabs If we decide to use react-error-overlay directly, I think I almost have it done in https://github.com/jkzing/vue-cli/tree/overlay.😁 (still need polish on the code)

All 9 comments

Did a simple PoC here https://github.com/jkzing/vue-cli/tree/overlay.
It seems react-error-overlay can be integrated into cli-service properly.

Could I work on this issue

@ajomadlabs If we decide to use react-error-overlay directly, I think I almost have it done in https://github.com/jkzing/vue-cli/tree/overlay.😁 (still need polish on the code)

Hey folks, have y'all seen https://www.npmjs.com/package/error-overlay-webpack-plugin?

That might be a nice solution...

@zephraph that's really just a wrapper over react-error-overlay. It's simpler to use but we need a bit more control than it exposes.

Good point. 👍

On Mar 9, 2018, at 4:37 PM, Evan You notifications@github.com wrote:

@zephraph that's really just a wrapper over react-error-overlay. It's simpler to use but we need a bit more control than it exposes.


You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@yyx990803 I would like to take up this issue can you suggest me the place to start looking at

@jkzing can you open a PR that links this issue with your progress on this?

@akrawchyk I am quiet busy on my daily job lately, you are welcome to take over it!
All my works on this are here https://github.com/jkzing/vue-cli/tree/overlay, quiet outdated I think..

Was this page helpful?
0 / 5 - 0 ratings