Skip to content

fix: declare missing @effect/* dependencies#612

Open
hlynurstef wants to merge 2 commits into
mattpocock:mainfrom
hlynurstef:fix/missing-effect-dependencies
Open

fix: declare missing @effect/* dependencies#612
hlynurstef wants to merge 2 commits into
mattpocock:mainfrom
hlynurstef:fix/missing-effect-dependencies

Conversation

@hlynurstef
Copy link
Copy Markdown

Summary

  • Adds @effect/cluster, @effect/experimental, @effect/rpc, @effect/sql, and @effect/typeclass as direct dependencies
  • These are required at runtime by @effect/platform-node and other effect sub-packages already listed as dependencies, but were not declared in sandcastle's own package.json
  • Regenerates package-lock.json to include the new packages

Root cause

@effect/platform-node (and related packages) declare @effect/cluster, @effect/rpc, @effect/sql, and @effect/typeclass as peer dependencies. npm v7+ silently auto-installs peer dependencies, so this goes unnoticed for npm users. However, yarn v1 does not auto-install peer dependencies, causing a hard runtime failure:

Error [ERR_MODULE_NOT_FOUND]: Cannot find package '@effect/typeclass' imported from ...

The fix is to declare these packages as direct dependencies of sandcastle, since they are genuinely required at runtime.

Closes #591

🤖 Generated with Claude Code

@vercel
Copy link
Copy Markdown

vercel Bot commented May 8, 2026

@hlynurstef is attempting to deploy a commit to the Matt Pocock's projects Team on Vercel.

A member of the Team first needs to authorize it.

…ncies

Packages required by @effect/platform-node and other effect sub-deps
were not declared in sandcastle's own dependencies, causing a hard
runtime failure for yarn v1 users (yarn does not auto-install peer
dependencies unlike npm v7+).

Fixes mattpocock#591

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@hlynurstef hlynurstef force-pushed the fix/missing-effect-dependencies branch from a462053 to 673acfe Compare May 23, 2026 10:54
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
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

Successfully merging this pull request may close these issues.

Missing @effect/* dependencies

1 participant