Workers SDK Issue Reports

← Back to Dashboard

#7395 SvelteKit quickstart gives 500 error - No such module node:async_hooks

Recommendation:CLOSE
Difficulty:n/a
Reasoning:

Fixed in PR #9940 (merged Aug 2025). SvelteKit template now includes nodejs_als flag by default. Released in create-cloudflare v2.50.9.

Suggested Action:

Close with comment explaining fix is available

Analysis Report

Issue Review: cloudflare/workers-sdk#7395

Summary

SvelteKit quickstart with paraglide fails deployment with "No such module node:async_hooks" - fixed in C3 v2.50.9

Findings

  • Created: 2024-11-30
  • Updated: 2025-10-30
  • Version: 3.91.0 (wrangler) → 4.60.0 (current), C3 2.50.9+ (fix)
  • Component: create-cloudflare (c3), Pages
  • Labels: bug, c3
  • Comments: 4

Key Evidence

  • Reporter narrowed the issue to the paraglide package requiring node:async_hooks
  • Maintainer @edmundhung suggested adding nodejs_compat or nodejs_als flag as workaround (Dec 16, 2024)
  • Reporter confirmed the nodejs_compat flag resolved the issue
  • PR #9940 merged on Aug 11, 2025 adds nodejs_als flag to the SvelteKit template by default
  • Fix released in create-cloudflare v2.50.9
  • Current version is 2.62.3, confirming the fix is available
  • Latest comment (July 2025) shows someone still hit this issue (likely using an older C3 version)

Recommendation

Status: CLOSE

Reasoning: The root cause has been fixed in PR #9940, which adds the nodejs_als compatibility flag to the SvelteKit template by default. This fix was released in create-cloudflare v2.50.9 (August 2025). Users creating new projects with pnpm create cloudflare@latest will automatically get the correct configuration.

Action: Close the issue with a comment explaining the fix has been deployed.

Suggested Comment

This issue has been fixed in PR #9940, released in create-cloudflare@2.50.9. The SvelteKit template now includes the nodejs_als compatibility flag by default, which enables support for node:async_hooks (required by paraglide and recent SvelteKit versions).

If you're still experiencing this issue, please ensure you're using the latest version of create-cloudflare (pnpm create cloudflare@latest or npm create cloudflare@latest).

For existing projects, you can manually add the flag to your wrangler.toml or wrangler.jsonc:

compatibility_flags = ["nodejs_als"]

Closing as fixed. Thank you @filipe-freire for the detailed report and @stof for the fix!

Notes & Feedback (0)

No notes yet.

Add Note