jxnblk / jxnblk/react-css-grid
Error during Serverside Rendering
- Dominant language
- JavaScript
- Stars
- 241
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
I tried adding this to my [`next.js`](https://github.com/zeit/next.js/) project. It works fine client side but server side I get the following error.
```
styleSheet.getName is not a function
TypeError: styleSheet.getName is not a function
at ComponentStyle.generateAndInjectStyles (my-project/node_modules/react-css-grid/node_modules/styled-components/lib/models/ComponentStyle.js:95:37)
```
Hopefully this problem would go away after #5 is resolved, because I'm going to try [`styled-system`](https://github.com/jxnblk/styled-system) next.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the server-side rendering failure in the Next.js project and inspect the reported node_modules/react-css-grid/node_modules/styled-components/lib/models/ComponentStyle.js location around line 95. Review issue #5 and verify whether resolving it addresses this error; done means server-side rendering completes without the reported TypeError.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, next.js, react
- Domain
- frontend, web-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100