-
Notifications
You must be signed in to change notification settings - Fork 10.3k
Closed
Labels
type: question or discussionIssue discussing or asking a question about GatsbyIssue discussing or asking a question about Gatsby
Description
I'm trying to follow this tutorial https://github.com/cssinjs/jss/blob/master/docs/setup.md#specify-dom-insertion-point because when I override some material ui properties doesn't work and this tutorial fixes it.
The problem is that I need to do
const insertionElement = document.getElementById('jss-css-insertion-point')
jss.setup({
// https://github.com/cssinjs/jss/blob/master/docs/setup.md#specify-dom-insertion-point
insertionPoint: insertionElement || undefined,
})
and obviously fails when gatsby builds.
Metadata
Metadata
Assignees
Labels
type: question or discussionIssue discussing or asking a question about GatsbyIssue discussing or asking a question about Gatsby