{"action":"created","issue":{"url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/24","repository_url":"https://api.github.com/repos/ceolter/ag-grid-react","labels_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/24/comments","events_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/24/events","html_url":"https://github.com/ceolter/ag-grid-react/issues/24","id":162768078,"number":24,"title":"HTMLElement is not defined","user":{"login":"fastfedora","id":1173892,"avatar_url":"https://avatars.githubusercontent.com/u/1173892?v=3","gravatar_id":"","url":"https://api.github.com/users/fastfedora","html_url":"https://github.com/fastfedora","followers_url":"https://api.github.com/users/fastfedora/followers","following_url":"https://api.github.com/users/fastfedora/following{/other_user}","gists_url":"https://api.github.com/users/fastfedora/gists{/gist_id}","starred_url":"https://api.github.com/users/fastfedora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fastfedora/subscriptions","organizations_url":"https://api.github.com/users/fastfedora/orgs","repos_url":"https://api.github.com/users/fastfedora/repos","events_url":"https://api.github.com/users/fastfedora/events{/privacy}","received_events_url":"https://api.github.com/users/fastfedora/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":15,"created_at":"2016-06-28T19:36:40Z","updated_at":"2017-02-13T11:22:22Z","closed_at":"2016-07-13T07:47:07Z","body":"Getting an `HTMLElement is not defined` trying to use ag-Grid within a React application compiled using webpack. Error stack is below.\n\n```\nnode_modules\\ag-grid\\dist\\lib\\gridCore.js:285\n})();\n  ^\nReferenceError: HTMLElement is not defined\n    at node_modules\\ag-grid\\dist\\lib\\gridCore.js:237:35\n    at Object.<anonymous> (node_modules\\ag-grid\\dist\\lib\\gridCore.js:285:3)\n    at Module._compile (module.js:413:34)\n    at Object.Module._extensions..js (module.js:422:10)\n    at Module.load (module.js:357:32)\n    at Function.Module._load (module.js:314:12)\n    at Module.require (module.js:367:17)\n    at require (internal/module.js:16:19)\n    at Object.<anonymous> (ag-grid\\dist\\lib\\misc\\focusService.js:18:18)\n    at Module._compile (module.js:413:34)\n    at Object.Module._extensions..js (module.js:422:10)\n    at Module.load (module.js:357:32)\n    at Function.Module._load (module.js:314:12)\n    at Module.require (module.js:367:17)\n    at require (internal/module.js:16:19)\n    at Object.<anonymous> (node_modules\\ag-grid\\dist\\lib\\rendering\\renderedCell.js:37:22)\n```\n\nUsing code:\n\n```\nimport {AgGridReact} from 'ag-grid-react';\n\n<AgGridReact columnDefs={columnDefs} rowData={rowData} />\n```\n\n[Other people](https://www.google.com/#q=%22HTMLElement+is+not+defined%22+ag-grid) are apparently also having this problem. Sounds like it may be due ag-Grid not supporting server-side rendering.\n"},"comment":{"url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/comments/279360038","html_url":"https://github.com/ceolter/ag-grid-react/issues/24#issuecomment-279360038","issue_url":"https://api.github.com/repos/ceolter/ag-grid-react/issues/24","id":279360038,"user":{"login":"dvoaviarison","id":15331114,"avatar_url":"https://avatars.githubusercontent.com/u/15331114?v=3","gravatar_id":"","url":"https://api.github.com/users/dvoaviarison","html_url":"https://github.com/dvoaviarison","followers_url":"https://api.github.com/users/dvoaviarison/followers","following_url":"https://api.github.com/users/dvoaviarison/following{/other_user}","gists_url":"https://api.github.com/users/dvoaviarison/gists{/gist_id}","starred_url":"https://api.github.com/users/dvoaviarison/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dvoaviarison/subscriptions","organizations_url":"https://api.github.com/users/dvoaviarison/orgs","repos_url":"https://api.github.com/users/dvoaviarison/repos","events_url":"https://api.github.com/users/dvoaviarison/events{/privacy}","received_events_url":"https://api.github.com/users/dvoaviarison/received_events","type":"User","site_admin":false},"created_at":"2017-02-13T11:22:22Z","updated_at":"2017-02-13T11:22:22Z","body":"Server side you could do this\r\n\r\n```js\r\nglobal.HTMLElement = typeof HTMLElement === 'undefined' ? () => {} : HTMLElement;\r\nglobal.HTMLSelectElement = typeof HTMLSelectElement === 'undefined' ? () => {} : HTMLSelectElement;\r\n```\r\n"}}
{"actor":{"display_login":"dvoaviarison"}}