How to log console errors to a file from reactjs application to a file using window.onerror? - reactjs

i am planning to log all the console errors from my reactjs application to file using window.onerror.
Could someone provide tutorial links to do for the whole application or some links that could help me start handling the errors from the frontend...
Could someone help me with this. thanks.

Related

Cannot see my variables in console while debuging react app on production

I am new to the react world and trying to use it in my sharepoint environment. I am packaging the app for production with source maps and upload it to the sharepoint site that I will use it in. App runs without a problem in the sharepoint but in the developer toolbox I cannot debug it completely. I can see my js file, put the debug point, and it pauses on the point but I cannot see the variables in console as you can see in the screenshot below.
But if I try the same code in dev environment with npm start I can see the same variable in console without any problem.
Is this normal behavior or am I doing something wrong? Thanks a lot.

Hosted React application shows blank page onn refresh

I have created a basic react login application using an external API from the following docuumentation : https://javascript.plainenglish.io/basic-react-login-using-external-api-e33322e480cd
So, I have made few changes in the code for routing part and it was working fine in the localhost.
Later I have created a build file for the react application and hosted it on the server.
After hosting I encountered the page showing blank so when I looked for a solution I came across this How to fix the white screen after build with create-react-app?
and it says to overcome we have to add "homepage":".", in package.json file
so I have added it in the package.json and created a build file.
On hosting that build file I was able to successfully see the homepage, but later what the problem is I'm unable either refresh the page or login to the page using the credentials. When I perform either of those actions the page shows the error not found message.
Can anyone tell me what the problem I'm facing and any mistake in my application or it might be the problem on the server side.
What is the reason that making me not able to stay on page when refreshing and also why the page doesn't redirect to other page on entering the credentials.
The hosted application is this : https://www.bizwy.in/signin
My github repo of the project is this : https://github.com/BhupathiVenkataSaiCharan/auth-app
Let me know if you need something to exactly understand my problem. And guide me through the problem and help me solve it.

ReactJS App not opening on Instagram webview

I have a ReactJS App which I am able to open on browsers such as Chrome, Edge etc. However, when I try to open it in Instagram App's webview. it tries to load and fails probably as nothing shows up but I can see the Website Header meta defined in index.html file.
Can someone please help me debug Instagram app's webviews?
I have been trying several things and failing to resolve this for days now.
Any help will be much appreciated.

Unable to access video files in ReactJS: No errors are visible in the console

I am trying to access videos in ReactJS but I do not know why it is constantly not accepting them, the console neither shows errors.
I have tried ../assests/videos/video-2.mp4 and other variants still I am not able to see the video on display and neither the console shows an error
Following is the code and file structure of my project:
Please help me out.
Thanks in advance.
You need to move videos inside the public folder
Example: Your file-structure will be like
public/assets/videos/video-1.mp4
public/assets/videos/video-2.mp4
Then your path /assets/videos/video-1.mp4 will be working

Deploying Click Once Application

Publishing of application was success
if downloaded the application from pavan.somee.com/default.html showing an error "setup.exe is not commonly downloaded and could be dangerous"
If i select "Keep" option, everything went well, please help me to solve this eror

Resources