Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
124 views

I'm trying to understand react-error-boundary better but from what I see in the documentation I can do exactly the same thing with either only one takes a function as a parameter and the other one ...
Sathania's user avatar
  • 109
0 votes
1 answer
64 views

I have read the docs and many posts (here and elsewhere) on this subject with no joy thus far It's a TypeScript Electron app built with Electron-Vite app, developed in VS Code // package.json "...
Joseph Beuys' Mum's user avatar
0 votes
1 answer
140 views

I'm using an Error Boundary in my React application to catch errors in child components. However, whenever an error occurs, the entire component tree under the Error Boundary gets replaced by the ...
meg's user avatar
  • 123
1 vote
0 answers
167 views

I have a component- const DataMonitor = () => { throw new Error("Test Error"); return ( <div>Hello</div> ) }; export default DataMonitor; In my ...
meg's user avatar
  • 123
2 votes
0 answers
310 views

I am encountering an issue while trying to run my React Native application on Android using the command: react-native run-android The build fails with the following error: Could not determine the ...
Manan Bhasin's user avatar
0 votes
1 answer
218 views

In an "offline-first" app (which optimistically updates local state and gracefully handles errors by rolling back local state changes, for example), some features may still require internet ...
Audiopolis's user avatar
1 vote
1 answer
746 views

I am trying to wrap my head around how to conveniently work with data fetching in Next.js 15 (app router) using Suspense and ErrorBoundary. Below please find my current approach. This works fine. But ...
Ben's user avatar
  • 16.8k
1 vote
0 answers
66 views

I have an app that using open api yaml + axios. I create an customInstance for API call, the function is : export const customInstance = async <T>( config: AxiosRequestConfig ): Promise<T&...
Maffia999's user avatar
1 vote
0 answers
61 views

I use the react-error-boundary library, is there no way to make a global error component in it, so that when any component breaks, an error component is substituted instead, while IT is IMPORTANT that ...
user26486954's user avatar
1 vote
1 answer
606 views

I hope someone might be able to help. I have this page structure in my NextJS 14 app: app/ (admin)/ layout.tsx (web)/ layout.tsx page.tsx not-found.tsx Note that ...
Gilles's user avatar
  • 21
0 votes
1 answer
1k views

Tried to use the error boundary handling feature of nextJS in this project. While it redirects to the error component, I get errors on the console. This is my test component where I force an error. ...
Sammonnay Sarcar's user avatar
3 votes
0 answers
892 views

Currently when an error occurs while nextjs is rendering a page on the server side I can see in the browser network tab a document request that is getting a status 500 response and a white page with ...
anvin's user avatar
  • 600
0 votes
0 answers
1k views

All of our fetch work is being done in server components. When a fetch fails, we throw an error in a server component: // MyServerComponent making the fetch call try{ fetch(.....) }catch(e){ ...
user19448827's user avatar
0 votes
1 answer
510 views

enter image description here const root = ReactDOM.createRoot(document.getElementById('root') as HTMLElement); root.render( <React.StrictMode> <ErrorBoundary fallback={<...
D uuu's user avatar
  • 1
1 vote
0 answers
1k views

Installed dependencies @tanstack/react-query: "^4.29.5" react-error-boundary: "^4.0.13" I can't seem to get Error boundaries working. I've stripped down my components to be the ...
beeboop's user avatar
  • 51
0 votes
0 answers
154 views

import {ErrorBoundary} from 'react-error-boundary'; export default function Home() { return ( <ErrorBoundary fallback={<div>Some error occurred</div>}> <SomeComponent/...
yujin choe's user avatar
0 votes
1 answer
1k views

I'm using react-query and react-error-boundary library in my Next.js project. I've noticed that if I use the reset function within the QueryErrorResetBoundary component, it triggers a re-render. ...
minami's user avatar
  • 237
1 vote
0 answers
693 views

I have my application wrapped with the AppInsights context provider and error boundary like it's suggested by Microsoft here. One of the things I would like to do is have a custom component to display ...
CoderLee's user avatar
  • 3,529
1 vote
0 answers
269 views

Let's say I had a component with the following error boundary and componentDidCatch method: return ( <ErrorBoundary componentDidCatch(error, info) { handleError(error, info); } &...
skpcc's user avatar
  • 11
0 votes
1 answer
43 views

Using Rails backend and React frontend, a user can comment on a post and can like/unlike a post. Everything works as intended but when I am on the PostDetail.js, and I refresh the page, I get an error ...
janestack's user avatar
-1 votes
1 answer
257 views

I am using react router v6 and react-error-boundary npm package export const routes: RouteObject[] = [ { path: "/login", element: <Login />, }, { path: "/signup&...
akshay23codes's user avatar
3 votes
1 answer
1k views

Im trying to handle the error The action 'NAVIGATE' with payload .. was not handled by any navigator tried having a no route match. the documentation says: const config = { screens: { Home: { ...
learncode's user avatar
  • 623
0 votes
1 answer
78 views

I am trying to implement ErrorBoundary from react-error-boundary like this: import React from 'react'; import { ErrorBoundary } from "react-error-boundary"; function Fallback({ error }) { ...
Louisinator's user avatar
5 votes
2 answers
7k views

I'm very new on NextJs and I'm just started to play around directly from the latest version. I found it very interesting and enjoyable but i'm still confusing about some aspects the are clearer to me ...
purplenet's user avatar
  • 115
1 vote
1 answer
1k views

<div className="textInputTag"> <span className="label">{props.label}</span> <TextField placeholder={placeholder} error={error ? true : false} ...
Vidhun's user avatar
  • 21
0 votes
1 answer
402 views

To check the behavior of ErrorBoundary, I used axios to send an api get request with the path parameter intentionally missing. const Container = () => { return ( <ErrorBoundary> &...
Jake's user avatar
  • 1
2 votes
1 answer
791 views

I have a ChatPage component as follows: import React from 'react' import axios from 'axios' import ErrorBoundary from './ErrorBoundary' const ChatPage = () => { const fetchChats= async()=>{ ...
Saad Farooq's user avatar
1 vote
1 answer
2k views

I'm trying to correctly handle query errors with Suspense and error boundaries in the situation where I have two parts of the app using the same query key. They initially execute at the same time so ...
Jeahel's user avatar
  • 1,153
0 votes
1 answer
816 views

I am currently using React-Query and Error Boundaries to manage server side states and errors. Current behavior Query Fails throw error. (500 Server Error) ApiErrorFallback catches error, but it ...
Youngjun Woo's user avatar
0 votes
0 answers
317 views

I have a component render hierarchy as below import {ErrorBoundary} from 'react-error-boundary' function errorFallback({error,resetErrorBoundary}) { return(<div>Some error occured!!!</div&...
V R's user avatar
  • 143
3 votes
2 answers
7k views

I have a component where I am fetching mock data. I am doing a query by using react-query with Suspense. I was following their docs. This is the component: export const WorkHistory = () => { ...
Leff's user avatar
  • 1,610
0 votes
1 answer
6k views

I have a NextJS app. In the app, I have a custom 404 page that I literally took from https://nextjs.org/docs/advanced-features/custom-error-page. I also have a middleware.ts file that checks for ...
qqq's user avatar
  • 1,036
2 votes
0 answers
1k views

i am building a web-app with remix-run and have a file app/utils/session.server.ts where i am accessing a sessionSecret from .env file. const sessionSecret = process.env.SESSION_SECRET; if (!...
Bryan Hain's user avatar
0 votes
1 answer
1k views

I am trying to build a react application. In order to handle errors I am using react-error-boundary. I am receiving a list of names from the server. I have enclosed the components inside Listprovider ...
Abby's user avatar
  • 123
0 votes
0 answers
147 views

I have an ErrorBoundary class (ErrorBoundry.jsx) that looks like this:- import React, { Component } from 'react' import ErrorPage from '../../ErrorPage' const WithErrorBoundary = ({ renderError } = {}...
Sh4dy's user avatar
  • 171
2 votes
1 answer
907 views

I have a view that contains a buggy component that I want to gracefully catch using react-error-boundary. The error is detected all right by react-error-boundary and the error handler renders its ...
Haniver's user avatar
  • 352
-1 votes
1 answer
1k views

You are running create-react-app 4.0.3, which is behind the latest release (5.0.1). We no longer support global installation of Create React App. npx clear-npx-cache is not working for me ....plz help ...
Prathamesh mane's user avatar
4 votes
0 answers
523 views

I've a <CartIconButton> which opens a <VariantsDialog> component. I've wrapped the dialog inside the <ErrorBoundary> component. The trigger prop is the actual button which opens the ...
gremo's user avatar
  • 48.9k
2 votes
0 answers
167 views

I have a function that adds an external script dynamically. here is my code try { const script = document.createElement('script'); script.src = 'script url'; script.async = isAsync; ...
Asad Gulzar's user avatar
2 votes
0 answers
934 views

It started with a few basic questions. Why can't I wrap my components in a try/catch block and do what ErrorBoundary does? Why do we need a special kind of component to do the job? This led me to ...
Praveen Puglia's user avatar
10 votes
1 answer
28k views

We are trying to use react-error-boundary with react-router (v6) but seems like we need to wrap every route element with an error boundary as shown below import { ErrorBoundary } from "react-...
user3205479's user avatar
  • 1,573
0 votes
1 answer
2k views

React will display a page that reports the errors and stacks in development mode when catch error. I take a try to redefine UI of that page with componentDidCatch method of an error boundary ...
JasonZhang's user avatar
0 votes
1 answer
858 views

I created a website on react. I works great on localhost/3000 and no errors at all. But when I created the build by npm run build Its all js files are full of error i) Tokenization is skipped for ...
Maryam Rasheed's user avatar
2 votes
1 answer
755 views

node:events:491 throw er; // Unhandled 'error' event ^ TypeError: Cannot set property closed of #<Readable> which has only a getter at FsReadStream.close (/app/node_modules/...
talha irtisam's user avatar
0 votes
0 answers
112 views

Home.jsx useEffect(() => { fetch( `https://api.openweathermap.org/data/2.5/onecall?lat=11&lon=11&exclude=hourly,minutely&units=metric&appid=${process.env....
Ayan Nagori's user avatar
6 votes
2 answers
1k views

We are testing React error boundaries within our application. Currently, we are seeing the React error boundary intermittently mask the error with the following: "An error was thrown inside one ...
Brennan Mann's user avatar
  • 1,537
4 votes
0 answers
1k views

I've seen this Error boundaries should implement getDerivedStateFromError() topic, but it doesn't help me. I'm following the React documentation about the error boundary implementation, and it does ...
BrTkCa's user avatar
  • 4,789
0 votes
2 answers
10k views

I'm working on ReactJS project and my requirement is simple. If something went wrong in the project show error message in screen instead of white screen because of the error. for example: for(let i=0; ...
Ali 's user avatar
  • 76
1 vote
1 answer
601 views

In React Official doc when explain about Error Boundaries they encourage us to use JS error reporting services or build our own one. So I need to know is there any good error reporting service for ...
Asela Priyadarshana's user avatar
1 vote
1 answer
61 views

I have setup my react.js eairler, everytime I import bootstrap related thing (Container, Row, Col, etc) and than put it on the application, the screen turns out to be white. HTML and CSS get to be ...
Abd El Rhman Basel's user avatar