trurl-master / jsdom-testing-mocks

A set of tools for emulating browser behavior in jsdom environment
MIT License
116 stars 7 forks source link

Error with type-fest on build project #43

Closed KoninMikhail closed 1 year ago

KoninMikhail commented 1 year ago

Hi. im using vite for build, and process stoped with this err. Why could this be? I tried searching on google but didn't find an answer. tell me what could be causing this error and if it's my fault.

node_modules/.pnpm/jsdom-testing-mocks@1.7.0_react@18.2.0/node_modules/jsdom-testing-mocks/dist/index.d.ts:1:23 - error TS2305: Module '"type-fest"' has no exported member 'Writable'.

1 import { PartialDeep, Writable, RequireAtLeastOne } from 'type-fest';

Cheers.

trurl-master commented 1 year ago

Hi there!

Thank you for the issue, it seems to me that you have type checking enabled for your declaration files (that'll type check all *.d.ts files in node_modules), try adding

"compilerOptions": {
  "skipLibCheck": true
}

to you tsconfig.json and tell me how it goes

KoninMikhail commented 1 year ago

Yeah, it works fine. Thanks.