react-php-v8js icon indicating copy to clipboard operation
react-php-v8js copied to clipboard

`window` should not be defined during SSR

Open ernestre opened this issue 7 years ago • 0 comments
trafficstars

Some react libraries render their components differently if the window object is defined. Currently if the window object is unefined, this is assigned to the window, which is not the actual window object. This causes errors like these :

webpack-internal:///643:57: TypeError: Cannot read property 'userAgent' of undefined

ernestre avatar Dec 30 '17 10:12 ernestre