jest-styled-components icon indicating copy to clipboard operation
jest-styled-components copied to clipboard

All declarations of 'Matchers' must have identical type parameters.

Open dennismphil opened this issue 5 years ago • 3 comments

With latest Jest

"@types/jest": "^24.0.21",

Seeing the following TypeScript error

node_modules/@types/jest/index.d.ts(667,15): error TS2428: All declarations of 'Matchers' must have identical type parameters.
node_modules/jest-styled-components/typings/index.d.ts(15,13): error TS2428: All declarations of 'Matchers' must have identical type parameters.

dennismphil avatar Nov 04 '19 17:11 dennismphil

i have got same problem too, can anyone solved this ???

ugrozkr avatar Nov 08 '19 14:11 ugrozkr

This is probably related to #270

andersnylund avatar Nov 12 '19 08:11 andersnylund

Fixed the problem for now by setting exact version in package.json to "@types/jest": "24.0.19",. Note the missing ^ character

andersnylund avatar Nov 12 '19 08:11 andersnylund