react-map-gl icon indicating copy to clipboard operation
react-map-gl copied to clipboard

[Bug] Failed to set an indexed property on 'CSSStyleDeclaration': Index property setter is not supported when showing/changing/map

Open m50d opened this issue 1 year ago • 0 comments

Description

Possibly a "you're holding it wrong" issue, but reporting in case it's something that can be easily fixed at this level.

When I pass a style parameter with a list to my Map component, a react change that adds the component triggers an error akin to the one described in https://stackoverflow.com/a/66053268 . I think this is due to https://github.com/visgl/react-map-gl/blob/fdf57d04dbfb8524fb192275f9d511997fa80998/src/components/map.tsx#L135

Expected Behavior

No response

Steps to Reproduce

https://codesandbox.io/p/sandbox/weathered-wave-sf7pp6

Environment

Logs

No response

m50d avatar Jan 24 '25 08:01 m50d