+
Skip to content

Conversation

vladislav805
Copy link

Hello!
When using your package, I get the error:

'Range' cannot be used as a JSX component. Its instance type 'Range' is not a valid JSX element

I found issue #171 in this repository.

After some digging, I found out what if my project is in the package.json override packageExtensions of pnpm for this package (react-range) @types/react and @types/react-dom, then everything starts working correctly. I think that if you specify inside the package react-range itself that a peer can use any version, then this can fix the error.

Copy link

changeset-bot bot commented Feb 17, 2025

⚠️ No Changeset found

Latest commit: 44e0be4

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载