-
Notifications
You must be signed in to change notification settings - Fork 144
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
Where is context
set?
#5
Comments
|
Ok, it seems a bit more complicated for I've gotten it mostly working, by updating:
But one aspect that still doesn't work right now is HMR, nor am I setting a different context on the server vs client. Since this question is now answered. I'll close this Issue and reopen as a PR over in that project. Thanks for your help. |
@koistya
The error was shown
|
I'm trying to add this to server-side render a particular component with its style.
I've installed this package and prepended it to the list of loaders for
.scss
:I've added all the code described in the readme for stateless react components:
But when I try to build this on the server (using
npm start
fromreact-static-boilerplate
) these errors are thrown:Any idea why
context.insertCss
isundefined
? Is there a step I'm missing? Was I supposed to invokegetChildContext
somewhere up the tree?The text was updated successfully, but these errors were encountered: