question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

display errors twice with create react app

See original GitHub issue

I 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 : image

And here’s the browser output of npm run storybook with the same kind of issue : image

I see some issues with that output :

  1. the error is displayed twice
  2. the text error doesn’t wrap (tested in full screen mode too)
  3. there’s some irrelevant information at the end regarding babel

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
arunodacommented, Nov 7, 2016

@SpaceK33z Thanks for the input. I added your suggestion and it works. Sent a PR: https://github.com/glenjamin/webpack-hot-middleware/pull/140

0reactions
arunodacommented, Nov 8, 2016

Released the fix as v2.29.4. Thanks everyone.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found