kripod / kripod/react-polymorphic-types

Could not find a declaration file for module

Open
#17 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
No language data
Stars
197
Forks
9
PR merge metrics
No merged PRs in 30d

Description

Just installed as a dev dependency in react 19 and getting:

```
Could not find a declaration file for module 'react-polymorphic-types'. '/Users/me/node_modules/react-polymorphic-types/empty.js' implicitly has an 'any' type.
There are types at '/Users/me/node_modules/react-polymorphic-types/index.d.ts', but this result could not be resolved when respecting package.json "exports". The 'react-polymorphic-types' library may need to update its package.json or typings.ts(7016)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the React 19 TypeScript error and inspect package.json alongside index.d.ts and empty.js to see how the package exports are resolved. Done means the declaration file is found without the TS7016 error when the package is installed as a development dependency.

Written by the indexing model from the issue text.

Assessment

Tech stack
react, typescript
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.