{"action":"created","issue":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7996","repository_url":"https://api.github.com/repos/gatsbyjs/gatsby","labels_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7996/labels{/name}","comments_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7996/comments","events_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7996/events","html_url":"https://github.com/gatsbyjs/gatsby/issues/7996","id":358316121,"node_id":"MDU6SXNzdWUzNTgzMTYxMjE=","number":7996,"title":"Problem building 'buffer without document' with Aphrodite","user":{"login":"Gabsii","id":23434539,"node_id":"MDQ6VXNlcjIzNDM0NTM5","avatar_url":"https://avatars3.githubusercontent.com/u/23434539?v=4","gravatar_id":"","url":"https://api.github.com/users/Gabsii","html_url":"https://github.com/Gabsii","followers_url":"https://api.github.com/users/Gabsii/followers","following_url":"https://api.github.com/users/Gabsii/following{/other_user}","gists_url":"https://api.github.com/users/Gabsii/gists{/gist_id}","starred_url":"https://api.github.com/users/Gabsii/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gabsii/subscriptions","organizations_url":"https://api.github.com/users/Gabsii/orgs","repos_url":"https://api.github.com/users/Gabsii/repos","events_url":"https://api.github.com/users/Gabsii/events{/privacy}","received_events_url":"https://api.github.com/users/Gabsii/received_events","type":"User","site_admin":false},"labels":[{"id":214544677,"node_id":"MDU6TGFiZWwyMTQ1NDQ2Nzc=","url":"https://api.github.com/repos/gatsbyjs/gatsby/labels/type:%20question%20or%20discussion","name":"type: question or discussion","color":"d4c5f9","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-09-08T18:04:02Z","updated_at":"2018-11-16T01:12:18Z","closed_at":null,"author_association":"NONE","body":"First of all, great job on building an maintaining GatsbyJS. Websites run so much faster with static files being rendered.\r\n\r\n## Description\r\n\r\nWhen trying to build my website to static files i run into an error (see actual result). I read in #544 that the problem comes from aphrodite. However in #544 it was mentioned that running Gatsby v1 would fix this issues. Is there a known workaround for my problem? Tried the tips in the linked issue but it didn't work for me. \r\n\r\n### Steps to reproduce\r\n\r\n`gatsby build`\r\n\r\naffected file: [Gabsii/gabsii/blob/master/src/templates/BlogPage.jsx](https://github.com/Gabsii/gabsii/blob/master/src/templates/BlogPage.jsx)\r\n\r\n### Expected result\r\n\r\nbuild site to static files \r\n\r\n### Actual result\r\n\r\n```\r\nsuccess Building CSS — 3.480 s\r\nsuccess Building production JavaScript bundles — 10.126 s\r\n\r\nerror Building static HTML for pages failed\r\n\r\nSee our docs page on debugging HTML builds for help https://goo.gl/yL9lND\r\n\r\n  815 |         // place without a document), so guard against that.\r\n  816 |         if (typeof document === \"undefined\") {\r\n> 817 |             throw new Error(\"Cannot automatically buffer without a document\");\r\n      | ^\r\n  818 |         }\r\n  819 |\r\n  820 |         // If we're not already buffering, schedule a call to flush the\r\n\r\n\r\n  WebpackError: Cannot automatically buffer without a document\r\n\r\n  - chunk-ff1dea3c.js:817 injectGeneratedCSSOnce\r\n    ~/aphrodite/lib/chunk-ff1dea3c.js:817:1\r\n\r\n  - chunk-ff1dea3c.js:843 injectStyleOnce\r\n    ~/aphrodite/lib/chunk-ff1dea3c.js:843:1\r\n\r\n  - chunk-ff1dea3c.js:947 injectAndGetClassName\r\n    ~/aphrodite/lib/chunk-ff1dea3c.js:947:1\r\n\r\n  - chunk-ff1dea3c.js:1158 css\r\n    ~/aphrodite/lib/chunk-ff1dea3c.js:1158:1\r\n\r\n  - BlogPage.jsx:66 BlogPage.render\r\n    src/templates/BlogPage.jsx:66:33\r\n\r\n  - ReactCompositeComponent.js:796 ReactCompositeComponentWrapper._renderValidatedComponentWithoutOwnerOrContext\r\n    ~/react-dom/lib/ReactCompositeComponent.js:796:1\r\n\r\n  - ReactCompositeComponent.js:819 ReactCompositeComponentWrapper._renderValidatedComponent\r\n    ~/react-dom/lib/ReactCompositeComponent.js:819:1\r\n\r\n  - ReactCompositeComponent.js:359 ReactCompositeComponentWrapper.performInitialMount\r\n    ~/react-dom/lib/ReactCompositeComponent.js:359:1\r\n\r\n  - ReactCompositeComponent.js:255 ReactCompositeComponentWrapper.mountComponent\r\n    ~/react-dom/lib/ReactCompositeComponent.js:255:1\r\n\r\n  - ReactReconciler.js:43 Object.mountComponent\r\n    ~/react-dom/lib/ReactReconciler.js:43:1\r\n```\r\n\r\n### Environment\r\n\r\n```\r\n  System:\r\n    OS: Windows 10\r\n    CPU: x64 Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz\r\n  Binaries:\r\n    Node: 10.6.0 - D:\\NodeJS\\node.EXE\r\n    npm: 6.1.0 - D:\\NodeJS\\npm.CMD\r\n  Browsers:\r\n    Edge: 42.17134.1.0\r\n  npmPackages:\r\n    gatsby: ^1.9.277 => 1.9.277\r\n    gatsby-link: ^1.6.46 => 1.6.46\r\n    gatsby-plugin-manifest: ^1.0.27 => 1.0.27\r\n    gatsby-plugin-nprogress: ^1.0.14 => 1.0.14\r\n    gatsby-plugin-offline: ^1.0.18 => 1.0.18\r\n    gatsby-plugin-page-transitions: ^1.0.7 => 1.0.7\r\n    gatsby-plugin-react-helmet: ^2.0.11 => 2.0.11\r\n    gatsby-source-wordpress: ^2.0.93 => 2.0.93\r\n```"},"comment":{"url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/comments/439247397","html_url":"https://github.com/gatsbyjs/gatsby/issues/7996#issuecomment-439247397","issue_url":"https://api.github.com/repos/gatsbyjs/gatsby/issues/7996","id":439247397,"node_id":"MDEyOklzc3VlQ29tbWVudDQzOTI0NzM5Nw==","user":{"login":"biw","id":6139501,"node_id":"MDQ6VXNlcjYxMzk1MDE=","avatar_url":"https://avatars3.githubusercontent.com/u/6139501?v=4","gravatar_id":"","url":"https://api.github.com/users/biw","html_url":"https://github.com/biw","followers_url":"https://api.github.com/users/biw/followers","following_url":"https://api.github.com/users/biw/following{/other_user}","gists_url":"https://api.github.com/users/biw/gists{/gist_id}","starred_url":"https://api.github.com/users/biw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/biw/subscriptions","organizations_url":"https://api.github.com/users/biw/orgs","repos_url":"https://api.github.com/users/biw/repos","events_url":"https://api.github.com/users/biw/events{/privacy}","received_events_url":"https://api.github.com/users/biw/received_events","type":"User","site_admin":false},"created_at":"2018-11-16T01:12:18Z","updated_at":"2018-11-16T01:12:18Z","author_association":"NONE","body":"@lumos-gonz & @Gabsii are you still running into issues? I'd be happy to help debug or fix  [biw/gatsby-plugin-aphrodite](https://github.com/biw/gatsby-plugin-aphrodite)"}}
{"actor":{"display_login":"biw"}}