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

Broken example with-aphrodite and Suspense #52982

Closed
1 task done
artem-malko opened this issue Jul 21, 2023 · 2 comments
Closed
1 task done

Broken example with-aphrodite and Suspense #52982

artem-malko opened this issue Jul 21, 2023 · 2 comments
Labels
examples Issue was opened via the examples template. stale The issue has not seen recent activity.

Comments

@artem-malko
Copy link

artem-malko commented Jul 21, 2023

Verify canary release

  • I verified that the issue exists in the latest Next.js canary release

Provide environment information

Operating System:
      Platform: darwin
      Arch: arm64
      Version: Darwin Kernel Version 21.6.0: Sat Jun 18 17:07:22 PDT 2022; root:xnu-8020.140.41~1/RELEASE_ARM64_T6000
    Binaries:
      Node: 18.12.1
      npm: 8.19.2
      Yarn: 1.22.19
      pnpm: 8.5.1
    Relevant Packages:
      next: 13.4.11
      eslint-config-next: N/A
      react: 18.2.0
      react-dom: 18.2.0
      typescript: N/A
    Next.js Config:
      output: N/A

There is a code example in the pull request: #52981

Which example does this report relate to?

with-aphrodite

What browser are you using? (if relevant)

Chrome Version 114.0.5735.198

How are you deploying your application? (if relevant)

No response

Describe the Bug

Just try to run an example with-aphrodite from my pull-request #52981

You will see that error:
Screenshot 2023-07-21 at 11 51 43

Error: Cannot automatically buffer without a document
    at injectGeneratedCSSOnce (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/aphrodite/lib/chunk-d8625444.js:1877:13)
    at injectStyleOnce (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/aphrodite/lib/chunk-d8625444.js:1909:3)
    at injectAndGetClassName (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/aphrodite/lib/chunk-d8625444.js:2038:3)
    at css (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/aphrodite/lib/chunk-d8625444.js:2222:14)
    at Comp (webpack-internal:///./pages/comp.js:23:66)
    at renderWithHooks (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5658:16)
    at renderIndeterminateComponent (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5731:15)
    at renderElement (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5946:7)
    at renderLazyComponent (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5936:3)
    at renderElement (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6029:11)
    at renderNodeDestructiveImpl (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6104:11)
    at renderNodeDestructive (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6076:14)
    at retryTask (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6528:5)
    at performWork (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:6576:7)
    at /Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5382:14
    at scheduleWork (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:77:3)
    at pingTask (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5381:5)
    at ping (/Users/a.malko/Work/lab/nextjs-fork/examples/with-aphrodite/node_modules/react-dom/cjs/react-dom-server.browser.development.js:5413:14)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)

Looks like there are some problems with streams and aphrodite.

Expected Behavior

Everything is working)

To Reproduce

Try to run #52981
The example: with-aphrodite

@artem-malko artem-malko added the examples Issue was opened via the examples template. label Jul 21, 2023
@nextjs-bot
Copy link
Collaborator

This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you.

@nextjs-bot nextjs-bot added the stale The issue has not seen recent activity. label Feb 17, 2025
@nextjs-bot
Copy link
Collaborator

This issue has been automatically closed due to two years of inactivity. If you’re still experiencing a similar problem or have additional details to share, please open a new issue following our current issue template. Your updated report helps us investigate and address concerns more efficiently. Thank you for your understanding!

@nextjs-bot nextjs-bot closed this as not planned Won't fix, can't repro, duplicate, stale Feb 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
examples Issue was opened via the examples template. stale The issue has not seen recent activity.
Projects
None yet
Development

No branches or pull requests

2 participants