I am trying to test my component that uses react-plotly.js, but I encountered an error: window.URL.createObjectURL is not a function. To address this, I followed the tips mentioned in the here. However, after implementing those suggestions, I am still facing an error: TypeError: Cannot read properties of undefined (reading 'colors.#fff').
How can I resolve this issue?
I am trying to test my component that uses
react-plotly.js, but I encountered an error:window.URL.createObjectURL is not a function. To address this, I followed the tips mentioned in the here. However, after implementing those suggestions, I am still facing an error:TypeError: Cannot read properties of undefined (reading 'colors.#fff').How can I resolve this issue?