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

@react-three/drei Text module stopped working starting from 14.0.5-canary.20 #61351

Closed
alyustik opened this issue Jan 29, 2024 · 2 comments
Closed
Assignees
Labels
bug Issue was opened via the bug report template. locked SWC Related to minification/transpilation in Next.js.

Comments

@alyustik
Copy link

Link to the code that reproduces this issue

https://github.com/alyustik/next-troika-bug

To Reproduce

  1. Start the app via "npm run dev"
  2. Open the main page in browser

Current vs. Expected behavior

Current:
Text isn't rendered and there are multiple console errors (https://next-troika-bug.vercel.app/):

  • ReferenceError: window is not defined
  • Uncaught (in promise) Error: Error in worker registerModule call: window is not defined

Expected:
No errors, "hello world" text is rendered inside canvas

Provide environment information

Operating System:
  Platform: win32
  Arch: x64
  Version: Windows 10 Home Single Language
Binaries:
  Node: 18.17.0
  npm: N/A
  Yarn: N/A
  pnpm: N/A
Relevant Packages:
  next: 14.1.1-canary.20 // Latest available version is detected (14.1.1-canary.20).
  eslint-config-next: N/A
  react: 18.2.0
  react-dom: 18.2.0
  typescript: 5.1.3
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

SWC transpilation

Which stage(s) are affected? (Select all that apply)

next dev (local), next start (local), Vercel (Deployed), Other (Deployed)

Additional context

the first release introducing the bug is "14.0.5-canary.20"

Given the error messages I got - first of all I've checked if a dynamic import with "ssr: false" will fix the issue, but it doesn't

@alyustik alyustik added the bug Issue was opened via the bug report template. label Jan 29, 2024
@github-actions github-actions bot added the SWC Related to minification/transpilation in Next.js. label Jan 29, 2024
@kdy1 kdy1 self-assigned this Jan 30, 2024
@kdy1
Copy link
Member

kdy1 commented Jan 30, 2024

Closing as duplicate of #60644

@kdy1 kdy1 closed this as not planned Won't fix, can't repro, duplicate, stale Jan 30, 2024
Copy link
Contributor

This closed issue has been automatically locked because it had no new activity for 2 weeks. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue was opened via the bug report template. locked SWC Related to minification/transpilation in Next.js.
Projects
None yet
Development

No branches or pull requests

2 participants