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

window undefined error in server-side rendering #608

Closed
Eneris opened this issue Nov 20, 2015 · 4 comments
Closed

window undefined error in server-side rendering #608

Eneris opened this issue Nov 20, 2015 · 4 comments

Comments

@Eneris
Copy link

Eneris commented Nov 20, 2015

There is an issue with sub-module "react-input-autosize" when page is pre-rendered server-side.

error given was: ReferenceError: window is not defined
    at \node_modules\react-select\node_modules\react-input-autosize\lib\AutosizeInput.js:10:9
    at Object.<anonymous> (\node_modules\react-select\node_modules\react-input-autosize\lib\AutosizeInput.js:13:3)
    at Module._compile (module.js:460:26)
    at Module._extensions..js (module.js:478:10)
    at Object.require.extensions.(anonymous function) [as .js] (\node_modules\babel-core\lib\api\register\node.js:214:7)
    at Module.load (module.js:355:32)
    at Module._load (module.js:310:12)
    at Function.module._load (\node_modules\piping\lib\launcher.js:32:16)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (\node_modules\react-select\lib\Select.js:13:13)
    at Module._compile (module.js:460:26)
    at Module._extensions..js (module.js:478:10)
    at Object.require.extensions.(anonymous function) [as .js] (\node_modules\babel-core\lib\api\register\node.js:214:7)
    at Module.load (module.js:355:32)
    at Module._load (module.js:310:12)
@Eneris Eneris closed this as completed Nov 20, 2015
@atroche
Copy link

atroche commented Dec 17, 2015

Hi @Eneris, did you end up resolving this? I was hoping to render the component server-side.

@ryanbooals
Copy link

@atroche Did you end up finding a solution?

@Eneris
Copy link
Author

Eneris commented Nov 1, 2016

No. I just went without server-side rendering this time

@jsperezg
Copy link

any news? this was supposed to be SSR compatible, however it's not

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

4 participants