feat(v2): better & nice looking error overlay #2096
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Motivation
Better error overlay.
![image](https://user-images.githubusercontent.com/17883920/70311929-258c8e80-1845-11ea-9281-7d1fa196cfbc.png)
Previously it's like this
![image](https://user-images.githubusercontent.com/17883920/70312057-6be1ed80-1845-11ea-8aa6-28ac2317b644.png)
Have you read the Contributing Guidelines on pull requests?
yes
Test Plan
Hot reload still ok
![hot reload still ok](https://user-images.githubusercontent.com/17883920/70311822-f6761d00-1844-11ea-881c-3273e93e915d.gif)
Error, can even open editor like CRA
![new error overlay](https://user-images.githubusercontent.com/17883920/70311824-f6761d00-1844-11ea-9c99-dca31b2c7ac5.gif)