Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Cannot automatically buffer without a document" when running as server-side #350

Open
francisrod01 opened this issue Nov 27, 2018 · 0 comments

Comments

@francisrod01
Copy link

I have a problem to render in Server-Side mode.
It related: #326

Envs:

  • react: 16.6.3
  • aphrodite: 2.2.3
  • npm: 6.4.1
  • node: v8.11.2
node_modules/aphrodite/lib/chunk-ff1dea3c.js:817
            throw new Error("Cannot automatically buffer without a document");
            ^

Error: Cannot automatically buffer without a document
    at injectGeneratedCSSOnce (/home/website/node_modules/aphrodite/lib/chunk-ff1dea3c.js:817:19)
    at injectStyleOnce (/home/website/node_modules/aphrodite/lib/chunk-ff1dea3c.js:843:5)
    at injectAndGetClassName (/home/website/node_modules/aphrodite/lib/chunk-ff1dea3c.js:947:5)
    at css (/home/website/node_modules/aphrodite/lib/chunk-ff1dea3c.js:1158:24)
    at Lightbox.renderGallery (/home/website/src/components/lightbox/index.js:79:28)
    at Lightbox.renderGallery [as render] (/home/website/src/components/lightbox/index.js:86:15)
    at d (/home/website/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:30:211)
    at ua (/home/website/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:30:494)
    at a.render (/home/website/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:35:48)
    at a.read (/home/website/node_modules/react-dom/cjs/react-dom-server.node.production.min.js:34:288)
@francisrod01 francisrod01 changed the title Cannot automatically buffer without a document "Cannot automatically buffer without a document" when running as server-side Nov 28, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant