Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make theme-related errors more descriptive #870

Open
craigpalermo opened this issue Jul 2, 2020 · 0 comments
Open

Make theme-related errors more descriptive #870

craigpalermo opened this issue Jul 2, 2020 · 0 comments

Comments

@craigpalermo
Copy link
Collaborator

Is your feature request related to a problem? Please describe.
In many cases, when we see an error like Uncaught TypeError: Cannot read property '3' of undefined, the root cause is that a styled component can't access the theme. This could be for many reasons; the app doesn't have a theme provider, the app has imported multiple instances of styled-components, etc.

Describe the solution you'd like
If an exception like this is thrown from within a styled component, we should hint at this being the cause.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant