Skip to content

bug: 0.17.1 fails to import with Effect 4.0.0-rc.110 #29

Description

@K-Mistele

effect-machine@0.17.1 declares effect: >=4.0.0-beta.64 as a peer dependency, but it fails with the newer peer-compatible effect@4.0.0-rc.110.

Clean repro:

mkdir effect-machine-repro
cd effect-machine-repro
bun init -y
bun add effect@4.0.0-rc.110 effect-machine@0.17.1
bun -e "await import(`effect-machine`)"

Result:

TypeError: Schema.TaggedErrorClass is not a function

dist/errors.js calls Schema.TaggedErrorClass(), which is available with the package's development dependency, effect@4.0.0-beta.64, but not with RC110.

Either update the generated runtime for current Effect or narrow the peer range so it does not claim RC110 compatibility.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions