The types of the package does not seem to match the code.
E.g. the index.d.ts file exports the Reference type, but the index.esm.js file does not export Reference.
Thus in your editor you can do:
import { Reference } from 'yup' and all looks fine, but then when running the actual code Reference will be undefined...
The types of the package does not seem to match the code. E.g. the
index.d.ts
file exports theReference
type, but theindex.esm.js
file does not export Reference. Thus in your editor you can do:import { Reference } from 'yup'
and all looks fine, but then when running the actual code Reference will be undefined...