question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Warning: [JSS] Rule is not linked. Missing sheet option "link: true".

See original GitHub issue

I didn’t realise the other issue was closed, this is still a problem, so I am opening a new issue about it.


I am running into this problem myself and build a minimal viable repo of it.
https://github.com/Braweria/react-jss-issue-rule-not-linked

I could trace the Problem to HeadingSection.tsx -> Box.tsx. <Box /> alone does not call the error, but in combination with the <HeadingSection /> it does.

I am using NextJS in my project, and both my _app and _document are correctly set up using the following resources:

My dependencies:

  "dependencies": {
    "jss": "^10.7.1",
    "jss-plugin-camel-case": "^10.7.1",
    "jss-plugin-global": "^10.7.1",
    "jss-plugin-vendor-prefixer": "^10.7.1",
    "next": "11.0.1",
    "normalize-jss": "^4.0.0",
    "react": "17.0.2",
    "react-dom": "17.0.2",
    "react-jss": "^10.7.1"
  }

When I start the dev server I get this warning

Warning: [JSS] Rule is not linked. Missing sheet option "link: true".

exactly twice. For each refresh, I get this warning twice.

The solutions mentioned here did not help.

_Originally posted by @Braweria in https://github.com/cssinjs/jss/issues/1143#issuecomment-883651067_

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:14
  • Comments:11 (2 by maintainers)

github_iconTop GitHub Comments

11reactions
benistarycommented, Mar 28, 2022

Exact problem. Any news?

Next 12.1.0 React-jss 10.9.0

6reactions
Braweriacommented, Aug 8, 2021

It has been about 20 days since I posted this, and it saw no comments. This is an issue that exists since before I posted about it here, so having a fix for this would be great.

Read more comments on GitHub >

github_iconTop Results From Across the Web

React-jss: Warning: Rule is not linked. Missing sheet option "link
If the error or succes props are true, it does show the right color. I want to set the underline color based on...
Read more >
cssinjs/Lobby - Gitter
Warning : Rule is not linked. Missing sheet option "link: true". I tried exporting the component like this and it still throws the...
Read more >
Enables functions for dynamic styles - JSS
If you want dynamic behavior for your Style Sheet, you can use functions as a value which return the actual value or a...
Read more >
jsstyles - Bountysource
I get the warning: Warning: [JSS] Rule is not linked. Missing sheet option "link: true". when I duplicate in a component the same...
Read more >
Storybook and material cant find parent style sheet on snap ...
2 JSS Rule is not linked (3x) console.warn Warning: [JSS] Rule is not linked. Missing sheet option "link: true". at Object.warning ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found