When attempting to use the new Slice API while utilizing JSS for styling all the styles on our pages started to break. The classNames are still being applied correctly but there are no styles attached to them. This only happens when running gatsby build
OR when running gatsby develop
with the DEV_SSR
flag set to true.
https://github.com/EvanBancroft/slice-style-bug-repro
Steps to Reproducegatsby build && gatsby serve
. The header is a slice and should be 100px tall & be red.The header should have styles attached to the className on it.
Actual ResultThere are no styles on the header despite the className being present.
EnvironmentSystem: OS: macOS 12.6 CPU: (8) arm64 Apple M1 Shell: 5.8.1 - /bin/zsh Binaries: Node: 18.11.0 - ~/.nvm/versions/node/v18.11.0/bin/node Yarn: 1.22.11 - /opt/homebrew/bin/yarn npm: 8.19.2 - ~/.nvm/versions/node/v18.11.0/bin/npm Browsers: Chrome: 108.0.5359.124 Firefox: 95.0 Safari: 16.0 npmPackages: gatsby: ^5.2.0 => 5.3.2 gatsby-plugin-jss: ^5.3.0 => 5.3.0Config Flags
No response
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4