Commit 02ce1d0
authored
fix: use effect 4.x matching opencode (#270)
fix: use effect 4.x matching opencode to fix cross-module Effect incompatibility
Effect 3.x uses unique Symbol for TypeId; Effect 4.x uses the plain string
'~effect/Effect'. Running Effect.runPromise from a bundled 3.x instance on
a 4.x Effect object fails with 'Not a valid effect: {}' because isEffect()
uses a Symbol lookup that cannot find the string-keyed property.
Pinning effect to 4.0.0-beta.48 (matching opencode) and adding a local
tsconfig.json with moduleResolution:bundler so DTS generation resolves the
package exports correctly.1 parent 0ea363c commit 02ce1d0
3 files changed
Lines changed: 198 additions & 46 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
0 commit comments