display errors twice with create react app
See original GitHub issueI freshly installed storybook on create-react-app with getstorybook
.
here’s the brouwser output of npm start
(CRA) when there’s a missing closing tag for instance :
And here’s the browser output of npm run storybook
with the same kind of issue :
I see some issues with that output :
- the error is displayed twice
- the text error doesn’t wrap (tested in full screen mode too)
- there’s some irrelevant information at the end regarding babel
Issue Analytics
- State:
- Created 7 years ago
- Comments:7 (7 by maintainers)
Top Results From Across the Web
The console.log() prints the same message twice while ...
There are two lines when using console.log() from my "react-app", how can I stop the second line from showing up?
Read more >React Components rendered twice — any way to fix this?
Let's find out if there is a way to avoid this problem by trying different implementations. A) Functional Component with useState. function App()...
Read more >Prevent Multiple Renders in React - YouTube
Does your React component render twice ? I have a simple app that has state containing a number. We are using useState and...
Read more >How to stop useEffect from running twice on mount ... - YouTube
Learn how to stop useEffect from running twice on mount or first render in React. The new React 18 strict mode runs useEffect...
Read more >How to Upgrade to React 18
If removing Strict Mode fixes your app, you can remove it during the upgrade, and then add it back (either at the top...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@SpaceK33z Thanks for the input. I added your suggestion and it works. Sent a PR: https://github.com/glenjamin/webpack-hot-middleware/pull/140
Released the fix as
v2.29.4
. Thanks everyone.