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
I'm using create-react-app in development with react-a11y's setup in src/index.js. My developer console displays warnings as I expected, but unfortunately there are a lot of them and the stack traces only contain the line of code in react-a11y's source that fires warning, with no information on the components or source files that exhibit these warnings.
This seems to be fixed if I set throw to true, though it halts my entire app and displays only one error at a time (at least on React 15) which is inconvenient for development. For now setting this in my test startup script seems to be a more convenient workaround. Still, it would be nice to see multiple error sources in my app and not just its test suite.
Ideas
Produce stack traces in warnings (not just errors).
Display the names of React components containing errors (React does this for prop type validation) and/or the names of the tags. Line numbers would be even better but I'm not sure if this would be possible without generating stack traces or running code in VMs.
Set throw option to true by default. This would probably be the easiest solution to implement, but it's the most tedious to develop with on React 15 which only shows one error at once without boundaries.
The text was updated successfully, but these errors were encountered:
I'm using
create-react-app
in development withreact-a11y
's setup insrc/index.js
. My developer console displays warnings as I expected, but unfortunately there are a lot of them and the stack traces only contain the line of code inreact-a11y
's source that fires warning, with no information on the components or source files that exhibit these warnings.This seems to be fixed if I set
throw
totrue
, though it halts my entire app and displays only one error at a time (at least on React 15) which is inconvenient for development. For now setting this in my test startup script seems to be a more convenient workaround. Still, it would be nice to see multiple error sources in my app and not just its test suite.Ideas
throw
option totrue
by default. This would probably be the easiest solution to implement, but it's the most tedious to develop with on React 15 which only shows one error at once without boundaries.The text was updated successfully, but these errors were encountered: