Skip to content
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

Using SSR with Material UI (Headers) #31

Closed
sergical opened this issue Dec 8, 2015 · 3 comments
Closed

Using SSR with Material UI (Headers) #31

sergical opened this issue Dec 8, 2015 · 3 comments

Comments

@sergical
Copy link

sergical commented Dec 8, 2015

I get the following error Material-UI expects the global navigator.userAgent to be defined for server-side rendering. Set this property when receiving the request headers.

Unable to find any docs in the package regarding this issue.

@mrphu3074
Copy link
Owner

@416serg i have no idea for now. But there are the same issues from official : mui/material-ui#2356

Hope to finding solution soon

@markshust
Copy link

This can probably be closed, readme at:
http://www.material-ui.com/#/get-started/server-rendering

setting userAgent to false if no prefixes needed, or safari line if needed, fixes this

@mrphu3074
Copy link
Owner

thanks. but this package dedicated. we use npm module for now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants