JedWatson / react-select

The Select Component for React.js
https://react-select.com/
MIT License
27.49k stars 4.12k forks source link

Controlled Components - Cannot Resolve Dependency #5711

Open MonstersInc-sudo opened 1 year ago

MonstersInc-sudo commented 1 year ago

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:

image

Error seen when clicking on the CodeSandbox to load:

image

With fix applied:

image

I would submit a pull request, but I can't seem to find a way to edit the Code Sandboxes.

Thank you!