Skip to content

Bug with react-jss compilation: "Warning: [JSS] Rule is not linked. Missing sheet option "link: true"." #1639

@GhostCrawl3r

Description

@GhostCrawl3r

Expected behavior:
I expect when I add the link:true option to createUseStyles from jss-react the following warning should not show up in my terminal: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".

Describe the bug:
I've been setting up css using the createUseStyles function from react-jss. I get the following error: Warning: [JSS] Rule is not linked. Missing sheet option "link: true".

I read up on the docs a little and I found you can add the link option as an optional behaviour to your createUseStyles function. Sadly, this does not resolve the issue.

I checked the types of the createUseStyles function, it does indeed extend off the "StyleSheetFactoryOptions" type with the link?: boolean added.

Versions (please complete the following information):

  • react-jss: 10.0.0
  • Browser [e.g. chrome, safari]: N/A
  • OS [e.g. Windows, macOS]: MacOS
  • React: 18.2.0
  • Node: 18.10.0

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