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

Console warnings with Theme-UI Styled component in latest Gatsby versions #24327

Closed
ehowey opened this issue May 22, 2020 · 1 comment · Fixed by #30023
Closed

Console warnings with Theme-UI Styled component in latest Gatsby versions #24327

ehowey opened this issue May 22, 2020 · 1 comment · Fixed by #30023
Assignees
Labels
type: bug An issue or pull request relating to a bug in Gatsby

Comments

@ehowey
Copy link
Contributor

ehowey commented May 22, 2020

Describe the bug
Since updating to the latest version of Gatsby I am seeing a bunch of console warnings that look like this:

warn ESLintError: 
/Users/erichowey/Coding/erichoweydev/src/components/work-card.js
  44:9  warning  Imported JSX component h4 must be in PascalCase or SCREAMING_SNAKE_CASE  react/jsx-pascal-case
  45:9  warning  Imported JSX component p must be in PascalCase or SCREAMING_SNAKE_CASE   react/jsx-pascal-case
  48:9  warning  Imported JSX component p must be in PascalCase or SCREAMING_SNAKE_CASE   react/jsx-pascal-case

Basically what is happening is that it doesn't like the <Styled.p> syntax and is complaining. Not a big deal - but maybe worrying for newer users of Theme-UI. Not sure if this would be resolved here or on the Gatsby end so I will cross post it.

Related to: system-ui/theme-ui#947

@ehowey ehowey added the type: bug An issue or pull request relating to a bug in Gatsby label May 22, 2020
@gatsbot gatsbot bot added the status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer label May 22, 2020
@freiksenet freiksenet added topic: theme-ui* and removed status: triage needed Issue or pull request that need to be triaged and assigned to a reviewer labels May 22, 2020
@ehowey ehowey closed this as completed May 28, 2020
@maiertech
Copy link

This is back in 2.31.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug An issue or pull request relating to a bug in Gatsby
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants