react-component / react-component/slider
React.createElement: type is invalid
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 3.1k
- Forks
- 768
- Avg merge
- 11d 22h
- Merged PRs (30d)
- 5
Description
Under React 15, everything is smooth but upgrading to React 16.3.2 crashes because of rc-slider. I did not reproduce on a small case, but removing the inclusion of the slider make it work, I was willing to check if I was the only one with that problem.
Warning: React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
Check the render method of `Slider`.
Here Slider is not directly the rc-slider, it's a wrapper, replacing the actual inclusion of rc-slider make it work.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the wrapper's Slider render path and the rc-slider inclusion under React 16.3.2; the report names no file or test. Confirm whether the warning reproduces, isolate the failing component boundary, and verify the behavior after the compatibility issue is addressed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100