facebook / prop-types

Runtime type checking for React props and similar objects
MIT License
4.48k stars 358 forks source link

TypeError: Cannot destructure property 'checkPropTypes' as it is undefined. #377

Closed code-masala closed 2 years ago

code-masala commented 2 years ago

when I am doing testing using jest in svelteKit . Error: TypeError: Cannot destructure property 'checkPropTypes' of 'pkg' as it is undefined.

Screenshot 2022-03-17 at 1 32 54 PM
code-masala commented 2 years ago

is this related to prop-types or jest?

ljharb commented 2 years ago

Certainly not prop-types - you can try here https://runkit.com/npm/prop-types

Perhaps you mocked out the module incorrectly?