-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
React Server Render Error on 2.1.10 #2583
Comments
需要判断 |
|
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
2.1.10
Environment
node v9.8 react 16.2.0
Reproduction link
https://github.com/ant-design/ant-design-mobile/blob/master/components/input-item/CustomKeyboard.tsx
Steps to reproduce
React server render not work on version 2.1.10
What is expected?
Node express can start.
What is actually happening?
node ./bin/app.js
D:\GitLab Code\exchanges-site_dev\build\node_modules\antd-mobile\lib\input-item\CustomKeyboard.js:51
var IS_IOS = /iphone|ipad|ipod/i.test(window.navigator.userAgent);
^
ReferenceError: window is not defined
at Object. (D:\GitLab Code\exchanges-site_dev\build\node_modules\antd-mobile\lib\input-item\CustomKeyboard.js:51:39)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object. (D:\GitLab Code\exchanges-site_dev\build\node_modules\antd-mobile\lib\input-item\CustomInput.js:37:23)
at Module._compile (module.js:652:30)
D:\GitLab Code\exchanges-site_dev\build警告: Missing git support, install posh-git with 'Install-Module posh-git' and restart cmder.
The text was updated successfully, but these errors were encountered: