{"action":"created","issue":{"url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/469","repository_url":"https://api.github.com/repos/FormidableLabs/spectacle","labels_url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/469/labels{/name}","comments_url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/469/comments","events_url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/469/events","html_url":"https://github.com/FormidableLabs/spectacle/issues/469","id":296159405,"node_id":"MDU6SXNzdWUyOTYxNTk0MDU=","number":469,"title":"Import Spectacle in server-side","user":{"login":"romelperez","id":1393135,"node_id":"MDQ6VXNlcjEzOTMxMzU=","avatar_url":"https://avatars2.githubusercontent.com/u/1393135?v=4","gravatar_id":"","url":"https://api.github.com/users/romelperez","html_url":"https://github.com/romelperez","followers_url":"https://api.github.com/users/romelperez/followers","following_url":"https://api.github.com/users/romelperez/following{/other_user}","gists_url":"https://api.github.com/users/romelperez/gists{/gist_id}","starred_url":"https://api.github.com/users/romelperez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/romelperez/subscriptions","organizations_url":"https://api.github.com/users/romelperez/orgs","repos_url":"https://api.github.com/users/romelperez/repos","events_url":"https://api.github.com/users/romelperez/events{/privacy}","received_events_url":"https://api.github.com/users/romelperez/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2018-02-11T04:26:04Z","updated_at":"2018-09-19T23:47:20Z","closed_at":"2018-06-11T13:50:51Z","author_association":"NONE","body":"I want to use [next.js](https://github.com/zeit/next.js/) to render a presentation with spectacle, but I get an error because the hash history is used.\r\n\r\n```js\r\nHash history needs a DOM\r\nInvariant Violation: Hash history needs a DOM\r\n    at invariant (/home/romelperez/projects/prhone/romelperez.com/node_modules/invariant/invariant.js:42:15)\r\n    at createHashHistory (/home/romelperez/projects/prhone/romelperez.com/node_modules/history/createHashHistory.js:69:27)\r\n    at Object.<anonymous> (/home/romelperez/projects/prhone/romelperez.com/node_modules/spectacle/lib/utils/controller.js:50:47)\r\n    at Module._compile (module.js:643:30)\r\n    at Module._compile (/home/romelperez/projects/prhone/romelperez.com/node_modules/source-map-support/source-map-support.js:492:25)\r\n    at Object.Module._extensions..js (module.js:654:10)\r\n    at Module.load (module.js:556:32)\r\n    at tryModuleLoad (module.js:499:12)\r\n    at Function.Module._load (module.js:491:3)\r\n    at Module.require (module.js:587:17)\r\n```\r\n\r\nI don't mind not rendering it from the server, but I need it to work in the client.\r\n\r\nIs there any workaround?"},"comment":{"url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/comments/422993982","html_url":"https://github.com/FormidableLabs/spectacle/issues/469#issuecomment-422993982","issue_url":"https://api.github.com/repos/FormidableLabs/spectacle/issues/469","id":422993982,"node_id":"MDEyOklzc3VlQ29tbWVudDQyMjk5Mzk4Mg==","user":{"login":"iamstarkov","id":559321,"node_id":"MDQ6VXNlcjU1OTMyMQ==","avatar_url":"https://avatars1.githubusercontent.com/u/559321?v=4","gravatar_id":"","url":"https://api.github.com/users/iamstarkov","html_url":"https://github.com/iamstarkov","followers_url":"https://api.github.com/users/iamstarkov/followers","following_url":"https://api.github.com/users/iamstarkov/following{/other_user}","gists_url":"https://api.github.com/users/iamstarkov/gists{/gist_id}","starred_url":"https://api.github.com/users/iamstarkov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iamstarkov/subscriptions","organizations_url":"https://api.github.com/users/iamstarkov/orgs","repos_url":"https://api.github.com/users/iamstarkov/repos","events_url":"https://api.github.com/users/iamstarkov/events{/privacy}","received_events_url":"https://api.github.com/users/iamstarkov/received_events","type":"User","site_admin":false},"created_at":"2018-09-19T23:47:20Z","updated_at":"2018-09-19T23:47:20Z","author_association":"NONE","body":"@dharmeshkakadia  you do not import anything from spectacle manually, you should utilise (like I use `Deck` from the callback argument) render prop's callback's arguments which reflects [spectacle's exports](https://github.com/FormidableLabs/spectacle/blob/master/src/index.js#L43-L76) and they are:\r\n\r\n```js\r\nconst spectacleExports = [\r\n  \"Anim\",\r\n  \"Appear\",\r\n  \"BlockQuote\",\r\n  \"Cite\",\r\n  \"CodePane\",\r\n  \"Code\",\r\n  \"ComponentPlayground\",\r\n  \"Deck\",\r\n  \"Fill\",\r\n  \"Fit\",\r\n  \"Heading\",\r\n  \"Image\",\r\n  \"GoToAction\",\r\n  \"Layout\",\r\n  \"Link\",\r\n  \"ListItem\",\r\n  \"List\",\r\n  \"Magic\",\r\n  \"Markdown\",\r\n  \"MarkdownSlides\",\r\n  \"Notes\",\r\n  \"Quote\",\r\n  \"S\",\r\n  \"Slide\",\r\n  \"SlideSet\",\r\n  \"TableBody\",\r\n  \"TableHeader\",\r\n  \"TableHeaderItem\",\r\n  \"TableItem\",\r\n  \"TableRow\",\r\n  \"Table\",\r\n  \"Text\",\r\n  \"Typeface\",\r\n  \"themes\"\r\n];\r\n```\r\n\r\nand I dont see `createTheme` in this list"}}
{"actor":{"display_login":"iamstarkov"}}