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

Fails on server side rendered pages #24

Open
dderr opened this issue Jun 8, 2016 · 2 comments
Open

Fails on server side rendered pages #24

dderr opened this issue Jun 8, 2016 · 2 comments

Comments

@dderr
Copy link

dderr commented Jun 8, 2016

var _mobile = /ipad|iphone|ipod|android|blackberry|windows phone|opera mini|silk/i.test(navigator.userAgent);

The line fails on isomorphic page loads when rendering on the server side since there is no browser environment.

at Object. (.../node_modules/react-icheck/lib/EnhancedSwitch.js:33:89)
[1] at Module._compile (module.js:460:26)
[1] at Module._extensions..js (module.js:478:10)
[1] at require.extensions.(anonymous function) (.../node_modules/babel-register/lib/node.js:166:7)
[1] at Object._module3.default._extensions.(anonymous function) [as .js](.../node_modules/webpack-isomorphic-tools/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:250:71)
[1] at Module.load (module.js:355:32)
[1] at Module._load (module.js:310:12)
[1] at Function.module._load (.../node_modules/piping/lib/launcher.js:32:16)
[1] at Module.require (module.js:365:17)
[1] at require (module.js:384:17)

@luqin
Copy link
Owner

luqin commented Jun 12, 2016

Not support server side now. Welcome to push a PR.

@jooj123
Copy link
Contributor

jooj123 commented Jul 5, 2016

This is fixed in this PR: #26

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