Skip to content

Warning: Unknown prop jsx on <style> tag (version 2.3.0) #1879

@paulbrie

Description

@paulbrie

I've updated to 2.3.0. When loading from the server I get this warning:

...Warning: Unknown prop jsx on <style> tag. Remove this prop from the element. ...

My code:

import { styles } from '../constants'

const FooterStyle = () => (
  <style jsx>
    {`
    
    footer {
      background-color: ${styles.mainColor2};
      text-align: center;
    }

    li {
      color: white
    }
    
  `}
  </style>
)

module.exports = FooterStyle

If if delete the jsx attribute and then put it back the warning does not appear anymore which makes me think that the issue is on the server-side only.

Thanks,
Paul

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions