-
-
Notifications
You must be signed in to change notification settings - Fork 923
Closed as not planned
Closed as not planned
Copy link
Labels
๐ phase/noPost cannot or will not be acted onPost cannot or will not be acted on๐
no/wontfixThis is not (enough of) an issue for this projectThis is not (enough of) an issue for this project
Description
Initial checklist
- I read the support docs
- I read the contributing guide
- I agree to follow the code of conduct
- I searched issues and discussions and couldnโt find anything (or linked relevant results below)
Affected package
6.0.0
Steps to reproduce
Version 6.0.0 requires react 18.
Actual behavior
In [email protected], the TypeScript definitions use React.SlotHTMLAttributes, which is only available in @types/[email protected]+. This causes compilation errors in projects using React 16 or 17, such as:
error TS2724: 'React' has no exported member named 'SlotHTMLAttributes'.
This makes it impossible to use this package with React 16 or 17 without type errors, even though the package technically installs fine due to missing peer dependency checks.
Expected behavior
To improve developer experience and avoid silent breakage, please consider adding:
"peerDependencies": {
"react": "^18.0.0",
"react-dom": "^18.0.0"
}
### Runtime
_No response_
### Package manager
_No response_
### Operating system
_No response_
### Build and bundle tools
_No response_JounQin
Metadata
Metadata
Assignees
Labels
๐ phase/noPost cannot or will not be acted onPost cannot or will not be acted on๐
no/wontfixThis is not (enough of) an issue for this projectThis is not (enough of) an issue for this project