jss icon indicating copy to clipboard operation
jss copied to clipboard

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

Open GhostCrawl3r opened this issue 3 years ago • 0 comments

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

GhostCrawl3r avatar Mar 06 '23 14:03 GhostCrawl3r