All Questions
Tagged with error-handling reactjs
600
questions
0
votes
0
answers
9
views
Html Webpack Plugin: Error: Child compilation failed: how should I have to solve it
I'm facing with this error
Compiled with problems:X
ERROR in ./src/scenes/Home/Intro.js 6:0-40
Module not found: Error: Can't resolve 'react-particles' in '..... \React-Portfolio-main\React-Portfolio-...
0
votes
0
answers
16
views
Microsoft Azure Application Insights Next JS server side logs diggest property
We have a project on Next.js. For logging, we're using Application Insights. There's no problem with client-side errors, but I can't catch server-side errors. The Next.js error is:
An error occurred ...
-1
votes
0
answers
13
views
npx error. the npx did not run what should i do for this
npm error could not determine executable to run
npm error A complete log of this run can be found in: C:\Users\Manuj\AppData\Local\npm-cache_logs\2024-07-19T07_10_33_916Z-debug-0.log
i try to run npx ...
0
votes
1
answer
20
views
Exception thrown in async React method is not caught in global error handler [duplicate]
I use React and have a code as this:
export default App;
window.onerror = function(error) {alert("Error caught: " + error);};
function App() {
perform().catch((error) =>{
...
-1
votes
1
answer
40
views
Is it possible to pass a Apollo Client GraphQL error from the server to the client
I am using Apollo client.
I have a GraphQL error from the Apollo error:
const { data, loading, error } = useyQuery();. I can see (and log) this error?.graphQLErrors on server side. On the client the ...
-1
votes
0
answers
19
views
Handling non-JSON responses in React useRequest hook
I deployed my React project, but it doesn't work as expected. In development mode, everything works fine, but in production json is not read properly. Here is my code where error happens:
import { ...
0
votes
0
answers
26
views
How to log information/errors on server side for client side components in NextJS 14.2.4
I am creating a project (currently on local) using NextJS v14.2.4 and I am using app router. I am rendering some pages on the client side for adding interactivity to it.
There are some scenarios where ...
-4
votes
0
answers
22
views
Hello coders, I'm trying to start my new topic react but am unable to do so as my vs code my having this particular error showing on my screen [duplicate]
npx : The term 'npx' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included,
verify that the path is correct ...
1
vote
1
answer
37
views
Topic: Preload Warning for Unused CSS in Next.js Application
This Nextjs Code giving me an Error:
My code is using Shadcn for Ui and Convex as a backend.
My folder structure is as follow:
and my main layout file is as follow:
import type { Metadata } from &...
0
votes
0
answers
26
views
How to Handle Errors Globally in a React App Without Crashing the Entire Application
I'm building a React application and want to implement global error handling that only affects the specific component where the error occurs, without crashing the entire app.
Currently, I use an ...
0
votes
0
answers
19
views
Authentication problem in my React Project (First time using Authentication logic after learning firebase)
I almost finished a project I'm working on but I have an issue with Authentication, whenever I navigate to signUp or login page and I log in its working without any issue and I track the status of ...
0
votes
0
answers
37
views
React Query useMutation isError is not turning true even when errors are deliberately thrown
I am using useMutation to post data to my server, however, even when deliberately forcing error, my destructured isError is still false.
usecase: I am setting a loading spinner when isLoading is true, ...
0
votes
0
answers
35
views
Mern stack authorization using access token along with a refresh token stored in a cookie
I am trying to intercept responses gotten from my node express server using axios interceptors. The goal of this is to spot whenvever i get a 403 error response status as a result of my access token ...
0
votes
0
answers
10
views
React ErrorBoundary Not Catching Errors - Red Screen with CRA Error Overlay [duplicate]
i'm working on a React application where I've implemented an ErrorBoundary component to catch and handle errors in my application. However, when I deliberately introduce an error in one of my ...
-1
votes
1
answer
62
views
Module not found: Can't resolve '@/src/components/layout/Header'
Failed to compile
Next.js (14.2.4) ./src/app/layout.js:3:1 Module not found: Can't
resolve '@/src/components/layout/Header'
The problem occurred out of nowhere 2 days ago the code was working fine ...