-
Notifications
You must be signed in to change notification settings - Fork 9
Closed
Description
preact
and @testing-library/preact
are defined as peer dependencies:
preact-hooks-testing-library/package.json
Lines 34 to 37 in 9badbd2
"peerDependencies": { | |
"@testing-library/preact": "^1.0.2", | |
"preact": "^10.4.1" | |
}, |
This makes sense for external consumers, but causes issues in local development, since TypeScript type checking will be unable to find types for the preact
and @testing-library/preact
packages, unless they are available in global caches.
To ensure that type definitions for preact
and @testing-library/preact
are available, they should be additionally be installed as devDependencies
.
Metadata
Metadata
Assignees
Labels
No labels