Issue with Importing Effect Namespaces in Bun v1.2.5

I'm having a really weird issue with imports in Bun... I can't seem to import Effect's namespaces; rather I have to import the individual functions, or else I end up with this strange internal Runtime error...

Repro steps:
1. Bun v1.2.5
2. bun init, choose React, choose "Default (blank)"
3. bun add effect
4. Add to ./src/frontend.tsx:
import { Effect } from 'effect';
console.log(Effect.runSync(Effect.succeed("Hello from Effect")))

5. Run bun dev, or bun --hot ./src/index.tsx
-- It breaks with the error presented above
6. Switch to...
import { runSync, succeed } from 'effect/Effect'
console.log(runSync(succeed("Hello from Effect")))

-- It works fine
CleanShot_2025-03-29_at_21.37.11.png
Was this page helpful?