JedWatson / react-select

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

Documentation codesandbox is not running correctly #4969

Open zeel opened 2 years ago

zeel commented 2 years ago

https://codesandbox.io/s/vb5fx?module=/example.tsx In documentation page https://react-select.com/home the link to codesandbox is giving error for Custom Styles MultiSelect

DependencyNotFoundError
Could not find dependency: 'chroma-js' relative to '/example.tsx'

I think need to update codesandbox

htech9 commented 1 month ago

Here how I could reproduce the issue today:

  1. Open the documentation page at https://react-select.com/home

  2. Go to "Styles" menu, then go to "Examples" section, and finally click the code sandbox link next to Multi Select react_select_docs_styles_page react_select_docs_styles_page_examples

Then we get into the sandbox environment, where we see the "Dependency not found" error: react_select_sandbox_error_no_chromajs_dep

It appears that the dependency chroma-js is just missing in package.json because once we click on "install dependency" everything works again and the missing dependency have been added.

I could reproduce the same error for Single Select as well which has same issue.

@JedWatson can you guide if this is a bug to be fixed this repo ?