JedWatson / JedWatson/react-select
Controlled Components - Cannot Resolve Dependency
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 28k
- Forks
- 4.1k
- PR merge metrics
- No merged PRs in 30d
Description
Hello,
I was looking at the examples in the documentation under advanced and couldn't get the CodeSandbox to load without error for controlled props (only one I am having an issue with so far).
To fix this I had to add 'react-syntax-highlighter' to dependencies, update the imports, and the registration of language.
Example in Question:
Error seen when clicking on the CodeSandbox to load:
With fix applied:
I would submit a pull request, but I can't seem to find a way to edit the Code Sandboxes.
Thank you!
Contributor guide
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 Advanced documentation example for controlled props and open its linked CodeSandbox configuration. Check how react-syntax-highlighter is listed, imported, and registered for the language; done means the sandbox loads without the reported dependency error and the example still renders correctly.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100