Closed p-hash closed 3 months ago
I have also encountered this issue. Not able to fix though.
Same here. Let's go back to rc-slider 😢
I will create a working
range package against that not working packages.
Add the following resolution to your package.json
and reinstall your dependencies, this fixed my issue.
"resolutions": {
"@types/react": "17.0.37"
}
I'm facing this issue using React 18 + Next.JS 13. From my package.json
:
"@types/react": "^18.2.6"
"@types/react-dom": "^18.2.4"
"typescript": "^5.0.4"
"next": "^13.4.1",
"react": "^18.2.0"
"react-dom": "^18.2.0"
Doing this makes the compiler ignore the error. It's not a final solution but can be used as temporary fix.
{/* @ts-ignore */}
<Range ... />
Researching a little further, this might be an issue with Next.js: https://github.com/vercel/next.js/issues/42292
Locking @types/react
and @types/react-dom
to 18.2.3
seems to do the trick.
It doesn't seem to be the issue with the library
Encountered this issue today. Please let me know how can I gather more info on this