eui
eui copied to clipboard
Problem with the EuiAvatar component, when changing theme.
Cannot assign to read only property 'backgroundColor' of object '#<Object>' at EuiAvatar (webpack://xxxx/./node_modules/@elastic/eui/es/components/avatar/avatar.js?:98:33) at renderWithHooks (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:14985:18) at updateFunctionComponent (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:17356:20) at beginWork (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:19063:16) at HTMLUnknownElement.callCallback (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:3945:14) at Object.invokeGuardedCallbackDev (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:3994:16) at invokeGuardedCallback (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:4056:31) at beginWork$1 (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:23959:7) at performUnitOfWork (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:22774:12) at workLoopSync (webpack://xxxx/./node_modules/react-dom/cjs/react-dom.development.js?:22702:5)
Unfortunately, this isn't really enough information for us to help you with.
-
Can you create a reproducible CodeSandbox of whatever issue you're running into? We need to see how you're using EuiAvatar and whether the issue lies within EUI source code or how you're using it (e.g., an issue with your tooling/pipeline).
-
Does this happen to you if you try other components that aren't EuiAvatar?
👋 This issue hasn't seen activity in 3 days, so we're automatically closing this issue as answered. Please leave a comment if that's not the case, or if you have any remaining questions or issues.