Closed
Description
🐛 Bug report
Current Behavior
I have a project that uses io-ts
. It stopped working because of a new version of io-ts
.
It has some code similar to this one
import * as t from "io-ts";
const Config = t.type(
{
a: t.string
},
"Config"
);
const result = Config.decode({a:123})
console.log(result.isRight());
This code used to work but now throws isRight is not a function
.
Expected behavior
It should still work, ie print false
.
The last working version is v1.9.0
.
v1.10.0
and v1.10.1
throw Cannot find module 'fp-ts/lib/Either'
Reproducible example
See Current Behavior
Suggested solution(s)
I can fix this in my local installation by running npm i io-ts@1.9.0
, but I can't do that for my users. For them, my project just stopped working.
Your environment
As I mention, this seems to have been introduced in v1.10.2
.
v1.10.0
and v1.10.1
just don't run because of an unmet peerDependency.
Software | Version(s) |
---|---|
io-ts | v1.10.2 |
fp-ts | v2.0.0 |
TypeScript | v3.5.2 |
Metadata
Metadata
Assignees
Labels
No labels