{"action":"closed","issue":{"url":"https://api.github.com/repos/videojs/video.js/issues/3869","repository_url":"https://api.github.com/repos/videojs/video.js","labels_url":"https://api.github.com/repos/videojs/video.js/issues/3869/labels{/name}","comments_url":"https://api.github.com/repos/videojs/video.js/issues/3869/comments","events_url":"https://api.github.com/repos/videojs/video.js/issues/3869/events","html_url":"https://github.com/videojs/video.js/issues/3869","id":195971329,"number":3869,"title":"Allow video.js to be run in node","user":{"login":"nicksorrentino","id":1429430,"avatar_url":"https://avatars.githubusercontent.com/u/1429430?v=3","gravatar_id":"","url":"https://api.github.com/users/nicksorrentino","html_url":"https://github.com/nicksorrentino","followers_url":"https://api.github.com/users/nicksorrentino/followers","following_url":"https://api.github.com/users/nicksorrentino/following{/other_user}","gists_url":"https://api.github.com/users/nicksorrentino/gists{/gist_id}","starred_url":"https://api.github.com/users/nicksorrentino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicksorrentino/subscriptions","organizations_url":"https://api.github.com/users/nicksorrentino/orgs","repos_url":"https://api.github.com/users/nicksorrentino/repos","events_url":"https://api.github.com/users/nicksorrentino/events{/privacy}","received_events_url":"https://api.github.com/users/nicksorrentino/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2016-12-16T03:09:29Z","updated_at":"2016-12-23T16:30:49Z","closed_at":"2016-12-23T16:30:49Z","body":"## Description\r\nI am server rendering my frontend using node.  We are unable to server render any modules that import video.js.  Due to running `document.createElement`\r\n\r\nhttps://github.com/videojs/video.js/blob/881cfcb346b588013768f538faf3d5f20ce42109/src/js/utils/browser.js#L74\r\n\r\n## Steps to reproduce\r\nExplain in detail the exact steps necessary to reproduce the issue.\r\n\r\n1. run node dist/video.js\r\n2. See stacktrace `TypeError: _document2.default.createElement is not a function`\r\n\r\n## Results\r\n### Expected\r\nVideo.js to not crash\r\n\r\n### Actual\r\nIt crashes running  `document.createElement`\r\n\r\n### Error output\r\n`TypeError: _document2.default.createElement is not a function`\r\n\r\n## Additional Information\r\nPlease include any additional information necessary here. Including the following:\r\n### versions\r\n#### videojs\r\nwhat version of videojs does this occur with?\r\n5.12.6\r\n#### browsers\r\nwhat browser are affected? None\r\n#### OSes\r\nwhat platforms (operating systems and devices) are affected? node any\r\n\r\ncc @ljharb \r\n"}}
{"actor":{"display_login":"gkatsev"}}