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

[Turbopack] SharedWorker TypeScript scripts not compiled #74842

Open
christoph-pflueger opened this issue Jan 13, 2025 · 0 comments
Open

[Turbopack] SharedWorker TypeScript scripts not compiled #74842

christoph-pflueger opened this issue Jan 13, 2025 · 0 comments
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Turbopack Related to Turbopack with Next.js. TypeScript Related to types with Next.js.

Comments

@christoph-pflueger
Copy link

Link to the code that reproduces this issue

https://github.com/christoph-pflueger/turbopack-shared-worker-reproduction

To Reproduce

  1. npm run dev
  2. Visit http://localhost:3000/
  3. Open the console. In Chrome you will notice the error Failed to fetch a worker script..
  4. Open chrome://inspect/#workers in Chrome. You will notice that only the SharedWorker with the .js script is running and has logged Hello world!.

Current vs. Expected behavior

I expect to be able to run a SharedWorker with a TypeScript script.

Currently, the SharedWorker fails to run.

It appears that the script is not even being compiled: .next/static/media/script.93184b23.ts

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP Tue Nov 5 00:21:55 UTC 2024
  Available memory (MB): 15948
  Available CPU cores: 12
Binaries:
  Node: 22.13.0
  npm: 10.9.2
  Yarn: N/A
  pnpm: 9.15.3
Relevant Packages:
  next: 15.2.0-canary.7 // Latest available version is detected (15.2.0-canary.7).
  eslint-config-next: N/A
  react: 19.0.0
  react-dom: 19.0.0
  typescript: 5.7.3
Next.js Config:
  output: N/A

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

Turbopack, TypeScript

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

next dev (local)

Additional context

No response

@christoph-pflueger christoph-pflueger added the bug Issue was opened via the bug report template. label Jan 13, 2025
@github-actions github-actions bot added Turbopack Related to Turbopack with Next.js. TypeScript Related to types with Next.js. labels Jan 13, 2025
@mischnic mischnic added the linear: turbopack Confirmed issue that is tracked by the Turbopack team. label Jan 14, 2025
@samcx samcx removed the bug Issue was opened via the bug report template. label Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
linear: turbopack Confirmed issue that is tracked by the Turbopack team. Turbopack Related to Turbopack with Next.js. TypeScript Related to types with Next.js.
Projects
None yet
Development

No branches or pull requests

3 participants