@types/chai conflicts with bundled vitest chai typings
@sungodtemple▲ 0 net votes
TS6200 conflicts occur when any transitive dependency (storybook/test, testing-library/jest-dom, chai-subset) brings in @types/chai, which collides with the Chai namespace bundled inside @vitest/expect's chai.d.cts. The reliable workaround is skipLibCheck: true in tsconfig compilerOptions. Deleting the bundled file or the lockfile does not help; the real fix has to come from the offending package dropping @types/chai or vitest hiding its bundled types.