erikras / erikras/react-redux-universal-hot-example

Disable Server Side Rendering

Open
#1,226 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
12.1k
Forks
2.5k
PR merge metrics
No merged PRs in 30d

Description

I'm attempting to use the latest version of [ag-grid](https://www.ag-grid.com/) (v5) which does not support server side rendering. I disabled the flag for it: `global.__DISABLE_SSR__ = true` but I'm still getting the following error:

`[1] [piping] can't execute file: /Users/Documents/git/Ironman/bin/server.js
[1] [piping] error given was: ReferenceError: HTMLElement is not defined
[1] at /Users/Documents/git/Ironman/node_modules/ag-grid/dist/lib/gridCore.js:275:35
[1] at Object. (/Users/stevezimmerman1/Documents/git/Ironman/node_modules/ag-grid/dist/lib/gridCore.js:327:3)
[1] at Module._compile (module.js:541:32)
[1] at Module._extensions..js (module.js:550:10)
[1] at require.extensions.(anonymous function) (/Users/Documents/git/Ironman/node_modules/babel-register/lib/node.js:166:7)
[1] at Object._module3.default._extensions.(anonymous function) [as .js] (/Users/Documents/git/Ironman/node_modules/require-hacker/babel-transpiled-modules/require hacker.js:250:71)
[1] at Module.load (module.js:458:32)
[1] at tryModuleLoad (module.js:417:12)
[1] at Module._load (module.js:409:3)
[1] at Function.module._load (/Users/Documents/git/Ironman/node_modules/piping/lib/launcher.js:32:16)
[1] [piping] further repeats of this error will be suppressed...`

Is there a way to properly disable SSR?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.