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

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

Open
GhostCrawl3r opened this issue Mar 6, 2023 · 0 comments

Comments

@GhostCrawl3r
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant