Error: 'Failure' is not exported by node_modules/folktale/validation/index.js
This lets me do:
import { validation as Validation } from 'folktale';
const { Success, Failure } = Validation;
So far so good, but I now need to use collect from the same package. The problem is that collect is exported differently from Success and Failure and triggers the same warning.
import { validation as Validation } from 'folktale';
const { Success, Failure, collect } = Validation;
Gives me:
> Error: 'collect' is not exported by node_modules/folktale/validation/index.js
Here are the exports from node_modules/folktale/validation/index.js
I've been using
folktale
with the following config:To get round the error:
This lets me do:
So far so good, but I now need to use
collect
from the same package. The problem is thatcollect
is exported differently fromSuccess
andFailure
and triggers the same warning.Gives me:
Here are the exports from
node_modules/folktale/validation/index.js
It doesn't look like there is a way to work around this.
Folktale main index and validation index
rollup@0.54.0 node@9.3.0