cositehq / sanity-plugin-simpler-color-input

A simpler color input for Sanity studio.
MIT License
25 stars 3 forks source link

"TypeError: Cannot redefine property: render" when starting studio #4

Closed jessetan closed 9 months ago

jessetan commented 10 months ago

Version 2.x switched the color picker dependency from react-color to @uiw/react-color in this commit. Ever since then, Studio no longer starts for me, but gives the error TypeError: Cannot redefine property: render

This is a reported issue in @uiw/react-color: https://github.com/uiwjs/react-color/issues/104 There are some workarounds in that thread.

AlyssaKirstine commented 9 months ago

Hi @jessetan thanks for flagging this. I'll hopefully have a chance to take a look into it soon.

AlyssaKirstine commented 9 months ago

@jessetan This was fixed in v2.2.0! Thanks for flagging and thanks to @theostrahlen for fixing it.

AlyssaKirstine commented 9 months ago

cc @tegansnyder since I noticed you made a fork trying to fix this same issue.