You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 1, 2022. It is now read-only.
I love using React as the view engine with express, but I have found debugging to be an issue.
When I encounter basic errors with React (in render() generally) I am unable to see the error message. I can use logging statements in my components if my component will compile, but when it doesn't compile I receive no error message.
Is there any way to expose this? It would be very useful for debugging. My application is very simple for the time being, and it would be great to get this in sooner rather than later.
The text was updated successfully, but these errors were encountered:
👍 the debugging steps I've learned so far to track down this issue is starting to wrap render return in try/catch in various place. I'd love to see a more expected error handling behavior.
This view engine does what is expected AFAIK which is to return the error and let express handle it. You should have some sort of error logging enabled. One example is https://github.com/expressjs/errorhandler which will show the error in the browser, which works for both transform errors and errors thrown from React.
I love using React as the view engine with express, but I have found debugging to be an issue.
When I encounter basic errors with React (in render() generally) I am unable to see the error message. I can use logging statements in my components if my component will compile, but when it doesn't compile I receive no error message.
Is there any way to expose this? It would be very useful for debugging. My application is very simple for the time being, and it would be great to get this in sooner rather than later.
The text was updated successfully, but these errors were encountered: