So I have been turned to using the Yup library for form validation on my project however when I have installed it (and tried many many more times after that) I have been encountering this extremely odd library error consistently.
I am utterly clueless at how to get past this. Any help would be incredibly appreciated.
C:/Users/x/Documents/y/frontend/node_modules/yup/lib/array.d.ts
TypeScript error in C:/Users/x/Documents/y/frontend/node_modules/yup/lib/array.d.ts(2,13):
'=' expected. TS1005
1 | import { MixedLocale } from './locale';
> 2 | import type { AnyObject, InternalOptions, Callback, Message, Maybe, Preserve, Optionals } from './types';
| ^
3 | import type Reference from './Reference';
4 | import { Asserts, Defined, If, Thunk, TypeOf } from './util/types';
5 | import BaseSchema, { AnySchema, SchemaInnerTypeDescription, SchemaSpec } from './schema';